Linux ACPI
 help / color / mirror / Atom feed
* [PATCH] ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static
@ 2022-11-23  3:42 Jiapeng Chong
  2022-11-23  9:54 ` Sudeep Holla
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2022-11-23  3:42 UTC (permalink / raw)
  To: rafael; +Cc: lenb, linux-acpi, linux-kernel, Jiapeng Chong, Abaci Robot

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(-)

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)
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static
  2022-11-23  3:42 [PATCH] ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static Jiapeng Chong
@ 2022-11-23  9:54 ` Sudeep Holla
  0 siblings, 0 replies; 2+ messages in thread
From: Sudeep Holla @ 2022-11-23  9:54 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: rafael, lenb, linux-acpi, Sudeep Holla, linux-kernel, Abaci Robot

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.

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-23 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-23  3:42 [PATCH] ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static Jiapeng Chong
2022-11-23  9:54 ` Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox