Skip to contentSkip to conversation

MIPS: Loongson64: Make acpi_registers_setup() static

PATCH Applied Wei Yongjun 2 participants 2 messages Jul 3, 2020 – Jul 9, 2020 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Loongson64: Make acpi_registers_setup() static

sparse report build warning as follows:

drivers/platform/mips/rs780e-acpi.c:72:6: warning:
symbol 'acpi_registers_setup' was not declared. Should it be static?

And function acpi_registers_setup() is not used outside of this file, so marks it static.

---
 drivers/platform/mips/rs780e-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/mips/rs780e-acpi.c +1 -1
index e5a643b78ac9..bb0e8ae0eefd 100644
@@ -69,7 +69,7 @@ static void acpi_hw_clear_status(void)
 	outl(inl(ACPI_GPE0_BLK), ACPI_GPE0_BLK);
 }
 
-void acpi_registers_setup(void)
+static void acpi_registers_setup(void)
 {
 	u32 value;
 
maintainer Applied
#1 lore raw
Quoted 5 lines · Wei Yongjun

sparse report build warning as follows:

drivers/platform/mips/rs780e-acpi.c:72:6: warning:
symbol 'acpi_registers_setup' was not declared. Should it be static?

Quoted 8 lines

And function acpi_registers_setup() is not used outside of this file, so marks it static.

---
 drivers/platform/mips/rs780e-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]