Message ID | 20221123034215.119461-1-jiapeng.chong@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2580945wrr; Tue, 22 Nov 2022 20:08:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7qTEH0+4wLCKqLTuXnXFEVca/K6klvsatvSe/NHUA3Xtm3jjnA9NJ2ln171LlURPDu46Wd X-Received: by 2002:a17:902:f7cf:b0:188:d452:2ca3 with SMTP id h15-20020a170902f7cf00b00188d4522ca3mr10181350plw.35.1669176481157; Tue, 22 Nov 2022 20:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669176481; cv=none; d=google.com; s=arc-20160816; b=yjDk5eH3MbpTIfpHKl2svPU6lyMHCNtx7ThKguK4rJCqCSY2i7ADxNnC/kCKufjR5d mjHeEZ0VoSYx2hioH0V4ryJHMSjnIoY1T/ZOpQH+2M7RMx5DRRBQhl0WRP5AZe9sIrVk HzfOXprSr2waJ5v97htRPhgjTEuQjyW3GWW1BWMokFmCxUud43D0wMW4W27HB6WD5Liy tlsTgEcyHRRhcXDAfkIrpIQhFAUjtWRn8N+NsvswfJNwQsB/W+kdM1Xmu2Pi5MSLCOzG SSLIGMTMDyIGS4PUV5rORgqfW6vvtSsqIHMdg943ImgFaYdr7Z8VKCAv9UFLE9qro1lF iqog== 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 :message-id:date:subject:cc:to:from; bh=x4GtuKDNIZrux39U8e8bnNm/ZyhFQSUjwngBxPoDXAU=; b=XvgSGCwC9FUxSHmVEuD2No3Od7J7L0c5qoiBjqifWDnoK96XpsEIPJnw83tU1BlcgQ SW7c6ovhGnwlevY90LfJTqJnlUg4MsrGAF19z8gL20zEm9enfL9QVnImZ7h4Ik4D8QKP 3V2BnpUTqYoJss0CWM/oBNNRHOozaj9TgYywnrjmOsDTacEP8w/f0ijkqfUSYDC9vU73 cm0cYa0lm+Jp9vHCiuKqit8Lb4sSqP+PlmOT76NRJXvlS9J5wEnqixRV5b1rIb4925e4 tfMedW8eMYRcM6oAuDdPpn4ZDeigY5IrIlNSZDzihbnumrZ2Vl5f/Sba7mDx9q8DG5yt Hxyg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631142000000b00476f67b655asi14838089pgr.131.2022.11.22.20.07.47; Tue, 22 Nov 2022 20:08:01 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235568AbiKWDmd (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 22:42:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234329AbiKWDmb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 22:42:31 -0500 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A19ACD4; Tue, 22 Nov 2022 19:42:28 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VVV8TGg_1669174943; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VVV8TGg_1669174943) by smtp.aliyun-inc.com; Wed, 23 Nov 2022 11:42:26 +0800 From: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> To: rafael@kernel.org Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH] ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static Date: Wed, 23 Nov 2022 11:42:15 +0800 Message-Id: <20221123034215.119461-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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?1750258397881330670?= X-GMAIL-MSGID: =?utf-8?q?1750258397881330670?= |
Series |
ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static
|
|
Commit Message
Jiapeng Chong
Nov. 23, 2022, 3:42 a.m. UTC
This symbol is not used outside of bus.c, so marks it static.
drivers/acpi/bus.c:304:6: warning: symbol 'osc_sb_ffh_opregion_support_confirmed' was not declared. Should it be static?
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3241
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/acpi/bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, Nov 23, 2022 at 11:42:15AM +0800, Jiapeng Chong wrote: > This symbol is not used outside of bus.c, so marks it static. > > drivers/acpi/bus.c:304:6: warning: symbol 'osc_sb_ffh_opregion_support_confirmed' was not declared. Should it be static? > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3241 > Reported-by: Abaci Robot <abaci@linux.alibaba.com> Sorry for not replying to the original report which I meant to and for some reason left it in the draft. Anyways in order to fix another bug, this variable was removed thereby removing this build/sparse warning. This warning should not appear from today's linux-next. Thanks for spotting and this patch fixing it.
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index a5ec8120e510..c2effd3f56ab 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -301,7 +301,7 @@ EXPORT_SYMBOL_GPL(osc_sb_native_usb4_support_confirmed); bool osc_sb_cppc2_support_acked; -bool osc_sb_ffh_opregion_support_confirmed; +static bool osc_sb_ffh_opregion_support_confirmed; static u8 sb_uuid_str[] = "0811B06E-4A27-44F9-8D60-3CBBC22E7B48"; static void acpi_bus_osc_negotiate_platform_control(void)