Skip to content

Commit

Permalink
cpuidle/pseries: Make symbol 'pseries_idle_driver' static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wei Yongjun authored and mpe committed Jul 16, 2020
1 parent 89c140b commit 92fe848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpuidle/cpuidle-pseries.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 92fe848

Please sign in to comment.