diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-14 16:24:24 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-16 05:12:45 +0200 |
commit | 92fe8483b1660feaa602d8be6ca7efe95ae4789b (patch) | |
tree | dd696db43a7a5063c01b0df85e63545c39b73794 /drivers/cpuidle/cpuidle-pseries.c | |
parent | pseries: Fix 64 bit logical memory block panic (diff) | |
download | linux-92fe8483b1660feaa602d8be6ca7efe95ae4789b.tar.xz linux-92fe8483b1660feaa602d8be6ca7efe95ae4789b.zip |
cpuidle/pseries: Make symbol 'pseries_idle_driver' static
The sparse tool complains as follows:
drivers/cpuidle/cpuidle-pseries.c:25:23: warning:
symbol 'pseries_idle_driver' was not declared. Should it be static?
'pseries_idle_driver' 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: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200714142424.66648-1-weiyongjun1@huawei.com
Diffstat (limited to 'drivers/cpuidle/cpuidle-pseries.c')
-rw-r--r-- | drivers/cpuidle/cpuidle-pseries.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c index 6513ef2af66a..3e058ad2bb51 100644 --- a/drivers/cpuidle/cpuidle-pseries.c +++ b/drivers/cpuidle/cpuidle-pseries.c @@ -22,7 +22,7 @@ #include <asm/idle.h> #include <asm/plpar_wrappers.h> -struct cpuidle_driver pseries_idle_driver = { +static struct cpuidle_driver pseries_idle_driver = { .name = "pseries_idle", .owner = THIS_MODULE, }; |