diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-03 11:57:36 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-07-08 11:30:10 +0200 |
commit | 520010668a26952ed6f4130b5385a3f4df970a6a (patch) | |
tree | 288915d6be7e5bfb96a04aad105c8bf91e726236 /drivers/platform | |
parent | 994334933efd396d0727500c87da1a81b17232d6 (diff) | |
download | linux-stable-520010668a26952ed6f4130b5385a3f4df970a6a.tar.gz linux-stable-520010668a26952ed6f4130b5385a3f4df970a6a.tar.bz2 linux-stable-520010668a26952ed6f4130b5385a3f4df970a6a.zip |
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 <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/mips/rs780e-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/mips/rs780e-acpi.c b/drivers/platform/mips/rs780e-acpi.c index e5a643b78ac9..bb0e8ae0eefd 100644 --- a/drivers/platform/mips/rs780e-acpi.c +++ b/drivers/platform/mips/rs780e-acpi.c @@ -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; |