Received: by 2002:ac8:71d8:0:b0:40f:fb00:664b with SMTP id i24csp209935qtp; Fri, 4 Aug 2023 08:40:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLuR50s6mhcwTMzUS6neSeO4rdcAS1hyMNIwUD3PWDehWY090ZAdqnuM24j/5hxFevKwpR X-Received: by 2002:aa7:d055:0:b0:514:9934:de96 with SMTP id n21-20020aa7d055000000b005149934de96mr1574744edo.26.1691163620820; Fri, 04 Aug 2023 08:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691163620; cv=none; d=google.com; s=arc-20160816; b=i48THA09dMik7/TkY1GUJgkt6YIe5pVri6S4a4fMt8hXD1xXc4zC1og3hCy9byQJrH z4GlGoJooL6RtkBbCwmsNe6KudtU/pmrKPkPNvL+PmvxlDODm9+jyscjfJV3ATehbZID aICSKQ8yYgSbjiJRSUMOglX52luzoEeNL+KKVxKMQ1MP+KU7mQZRuBPwoRYkxiUqAOfs 6lWhowreAuCKDwKX+uT2W5zqlab3oxVt/7r2rRmyplxpq27uN2KUXoXd8UkZJIY1wTif ZT9eE8Kv9Av/gqqj6V73RFufZ76XPkbziUB5tUH+1F2/a0AtL44rEEBtgG2ZpBmdsSOa +I/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3659ZWZCGt0pXgrwje6WFP+TZugyqQS1DG3DPApo7Dw=; fh=f7zGs/ToMwEeQD6tJkOGnKVESA+OAd8bNlAfZMZlgXI=; b=CuZ4Mjn0hHlPZA9zI6eoMjYH5Kdoy43IiNk+f3t+C+osoLKwMlmyFvZXSlaJxFk7VC BC7AO+bKm6YV9RLTa+KuBdIDavkV4Zz88cRa18zmLF/TJdU3LW7cKBjZbU5wiTsijNIN so7Q84DU/kC9ntECwIcP3o3knUKeYtzkAV2ir+M5ki/4cKgxnebjUvdh9EkdI1ZxysuH 2MqiByxzaJRBpku8orhINATaebzQSk/LwcDkMaVyDUi0lwNF9B+Kp9jST8TPmJ5Dn+6A AWablJ1q9ZwBR4re9dX/H9RIlZrokHJStZkztJMvZLWTca23f1XRUvhvOYEOGb4lXeaa 1zgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=teXBdQCp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a056402071000b0051de30de0c4si1577589edx.595.2023.08.04.08.39.56; Fri, 04 Aug 2023 08:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=teXBdQCp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231932AbjHDPTi (ORCPT + 99 others); Fri, 4 Aug 2023 11:19:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjHDPTh (ORCPT ); Fri, 4 Aug 2023 11:19:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD5B49C1; Fri, 4 Aug 2023 08:19:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3EC4B6206B; Fri, 4 Aug 2023 15:19:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C5DCC433C7; Fri, 4 Aug 2023 15:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691162375; bh=hHDz38CB+HkMmklWio9ZQ4ndafz59B33DbehJXavBS0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=teXBdQCpJJ3OGjY6KbGN8tilDfEVQue00QTazqmjd5fBUChKMXwOGVLq6daR4FDbf qXh6CboMr6leIH/oWN8yvGpcscwwrmjslQI7QWzulffY5+kupSZmmzvZ2nADFHqYpn hwtMmUs4Kis5KLg9HTEElgLwEVXJLeLiD5tCsk80v3kCvaBGsw2mel+YFrODxvvtV/ Ts8Qms6P4ibqHP3HIOFH2wVY41OCAztspxeUmXNBIbic3ZQMgoib/QdWzIRwLJ1DDB 64aCZw/DlYyOHtdIzi/HMivb12UiKmuYrX7cNySDYMdLixoNqonCdaUopDLIoJ2XuD FKVAXtlKSpXKA== Date: Fri, 4 Aug 2023 16:19:27 +0100 From: Conor Dooley To: Andy Shevchenko Cc: Sunil V L , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Len Brown , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Anup Patel , Marc Zyngier , Bjorn Helgaas , Robert Moore , Haibo Xu , Andrew Jones , Conor Dooley , Atish Kumar Patra Subject: Re: [RFC PATCH v1 09/21] RISC-V: cacheflush: Initialize CBO variables on ACPI systems Message-ID: <20230804-dreamy-unharmed-a502d02af35a@spud> References: <20230803175916.3174453-1-sunilvl@ventanamicro.com> <20230803175916.3174453-10-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GXjvkfPtI3JRgl/C" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --GXjvkfPtI3JRgl/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 04, 2023 at 05:59:51PM +0300, Andy Shevchenko wrote: > On Fri, Aug 04, 2023 at 02:50:34PM +0530, Sunil V L wrote: > > On Fri, Aug 04, 2023 at 08:56:29AM +0300, Andy Shevchenko wrote: > > > On Thu, Aug 03, 2023 at 11:29:04PM +0530, Sunil V L wrote: > > > > Using new interface to get the CBO block size information in > > > > RHCT, initialize the variables on ACPI platforms. >=20 > ... >=20 > > > > +#include > > >=20 > > > What do you need this for? > > >=20 > > > > #include > > >=20 > > When CONFIG_ACPI is disabled, this include is required to get > > acpi_get_cbo_block_size(). >=20 > How is it useful without ACPI being enabled? It is not, as evidenced by the `return -EINVAL;`. > If it's indeed > (in which I do not believe), better to make sure you have it > avaiable independently on CONFIG_ACPI. Otherwise, just put > #ifdef CONFIG_ACPI around the call. Let's not litter the code with ifdeffery please where it can be easily avoided. --GXjvkfPtI3JRgl/C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZM0W/wAKCRB4tDGHoIJi 0kuVAQDw7o9CBBPZvOZRnV4GOgYrlNOO9/0bJ6PGEvVlWlJR2wD+Im0XikBKI2i3 E2WQtTAIBya29pYaEsPNynJY6+2BqAc= =E2dR -----END PGP SIGNATURE----- --GXjvkfPtI3JRgl/C--