MIPS: Loongson64: Make acpi_registers_setup() static
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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/platform/mips/rs780e-acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/mips/rs780e-acpi.c +1 -1
@@ -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;
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.Reported-by Hulk Robot <[email protected]>Signed-off-by Wei Yongjun <[email protected]>--- 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 ]