Message ID | 20230516160642.523862-8-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp542443vqo; Tue, 16 May 2023 09:10:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7W1eX99jZxWVxiZzHfH7OTfXmAlpeMcJvBOBxFdXBXvo7WIurQYD7VuipzA/kRNHR7ELOn X-Received: by 2002:a05:6a20:2583:b0:106:feff:40ce with SMTP id k3-20020a056a20258300b00106feff40cemr2939087pzd.1.1684253419685; Tue, 16 May 2023 09:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253419; cv=none; d=google.com; s=arc-20160816; b=bl187m2bY2OXQn6zxlrINYDBcYcPQY1P486YK19ErO1TSu0awt4OVKAWupzhx49ozV rZs6lc6dN8C8/VlmQv5GVzNCAWgVaDOB9DwGNoUlemcE0WTA5KUmW3RQteIOwWKIoGSM AeVpKTZ15HL32HcZ5HYSoS3SO2azl00i7xaq0ghxN9671e/E/yl9EyI0aPLXifP0ws1V Fxl0ueyRpluX3dfDU1/EzX/d9aA1HYoVzx/KRSf8ItIb4sMM4j1rNkmzA1rUyS8aDk8M rLr8WdEX+iBf5NMQDwGnsrE1XQPlrck/uM4eeQyRCL8aoBXxU0ZFJQI9dDfLeGFtYTsr 5ZmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8rGTQJwI7sfRNopNnhfR1C4KQfy1+v9jfTqxIqzBMks=; b=b0agcbhz2nvYtP2z2qTlxSkJ/1W4Y4n1SF+uk42gLuafJrfF2io0BXHqQSJu4hMsaN hRGrbbPusJoIcdCPgHaIg7YDFsV/BTBQ4+HV8MS8NZiERweAweb2P94Kgs8oeV7YAARQ dvk2Af6AF42Ji3CXb3BTTzs4UmU5DXXdKBUgGDXLQLO0Zs9rheK7ShDRmeG7JoVkQZkm 1GMhalYv5WzAFx95ZbCIBXs2aZcLh7B/6klP5obiG3U9VmLmpIDMPTDa5oIk1mKr8y6B mS2gMpHaq8VT8ZboN8CCD4m2xfHDFOlM10rLFSCZn4o8G30ZYPKuamd0Iye/ctHwdPYZ RT5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=miKZNnEO; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f64-20020a625143000000b0063b89234a5asi19817776pfb.371.2023.05.16.09.09.58; Tue, 16 May 2023 09:10:19 -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=miKZNnEO; 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 S233965AbjEPQHv (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 12:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234424AbjEPQHi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 12:07:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142289EFB; Tue, 16 May 2023 09:07:26 -0700 (PDT) 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 5AA3C63BEE; 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 <arnd@kernel.org> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, Ard Biesheuvel <ardb@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Zenghui Yu <yuzenghui@huawei.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Kees Cook <keescook@chromium.org>, Suren Baghdasaryan <surenb@google.com>, 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766067713694609450?= X-GMAIL-MSGID: =?utf-8?q?1766067713694609450?= |
Series |
arm64: address -Wmissing-prototype warnings
|
|
Commit Message
Arnd Bergmann
May 16, 2023, 4:06 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- 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 <linux/of_device.h> #include <linux/psci.h> -#ifdef CONFIG_ACPI +#ifdef CONFIG_ACPI_PROCESSOR_IDLE #include <acpi/processor.h>