Skip to contentSkip to conversation

ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static

PATCH In review Jiapeng Chong 2 participants 2 messages Nov 23, 2022 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: bus: make osc_sb_ffh_opregion_support_confirmed static

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?

---
 drivers/acpi/bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/bus.c +1 -1
index a5ec8120e510..c2effd3f56ab 100644
@@ -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)
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw
Quoted 6 lines · Jiapeng Chong

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?

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.

Signature · 2 lines
Regards,
Sudeep