From patchwork Tue May 16 16:06:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243374 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 581E7C77B7A for ; Tue, 16 May 2023 16:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=86SvTfrojsIXJcz4QaLsshKCWFdldSeQCTfxAC9IDsQ=; b=x1+LbUTcnlmMEg AMJGI2MsDdLowqZCGN/UWZZFErZ2CnXKM1RP6VCHe0Kf8y482BxtKeGaEG8SOiZfx2MatC6bde0tQ fgQVxTVdWegR1GoU+oKNnTOqXmXuxOQx7mLqgew/OUVWpGofW5BeWweBjjTkasxW8erdgSzmWh6Oo V/M4LB0kS/S4RGbxNebYu5GN5J91uLNJo7/x4caQQbkIKvnSFbd3HIVSsy5Yw5K4qGyTxhrrOD0ny v6aue0cuJnfNyk/gYW8oMkj2nwEWYqFigm1rcFh6uO5tMm36kAkhF7aZKOkcTy8DVifoTfIBONP1M mK8dMmV9eALtEL6aO0DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyxCz-006Onf-0D; Tue, 16 May 2023 16:07:29 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyxCv-006OlE-2V for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 16:07:27 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 531DB635AC; Tue, 16 May 2023 16:07:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24C3EC4339E; Tue, 16 May 2023 16:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253244; bh=WY9mojz+JxIIIHLIpP7M6rnup7jdrKDCKG5lg/lRrUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=miKZNnEOuFMfFKgqtXtnLdXEddmtAYwAiv29ed3jdSODBJwbxl6Fs7ZQDvMgQxO+Y etl4RPkmcS1afZZaQZIJOUc18hMC965eJWmtQ4uh6ttAYVTDo9iZRA8yqB8PkTHvws tMg23uiRs3ElJMGkxPbWP+ulqME7o0DG1Asyl19PpY5itIhFgIrbl5WSQ20tY1r7jW 3AwfMxQGO2yJZ9AGYkXJawnRmQ0C6i8lD2CFscr4qr/KFuJovWFDfRVy45wTZiiaXV AQhRHUPeewT9p/wWPmtpbto93lum9PE8rGEz/dgz5GCusjmQvUJN/ePhR+H9F2VFV5 tyamiqLBLrEXg== From: Arnd Bergmann To: Catalin Marinas , Will Deacon Cc: Arnd Bergmann , Ard Biesheuvel , Mark Rutland , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anshuman Khandual , Kees Cook , Suren Baghdasaryan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 07/15] arm64: cpuidle: fix #ifdef for acpi functions Date: Tue, 16 May 2023 18:06:34 +0200 Message-Id: <20230516160642.523862-8-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516160642.523862-1-arnd@kernel.org> References: <20230516160642.523862-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_090725_865571_83926EB5 X-CRM114-Status: GOOD ( 14.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The acpi_processor_ffh_lpi_* functions are defined whenever CONFIG_ACPI is enabled, but only called and declared when CONFIG_ACPI_PROCESSOR_IDLE is also enabled. Without that, a W=1 build triggers missing-prototope warnings, so the #ifdef needs to be adapted: arch/arm64/kernel/cpuidle.c:60:5: error: no previous prototype for 'acpi_processor_ffh_lpi_probe' [-Werror=missing-prototypes] arch/arm64/kernel/cpuidle.c:65:15: error: no previous prototype for 'acpi_processor_ffh_lpi_enter' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/arm64/kernel/cpuidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c index 42e19fff40ee..d1f68599c29f 100644 --- a/arch/arm64/kernel/cpuidle.c +++ b/arch/arm64/kernel/cpuidle.c @@ -13,7 +13,7 @@ #include #include -#ifdef CONFIG_ACPI +#ifdef CONFIG_ACPI_PROCESSOR_IDLE #include