Skip to content

Commit 92fe848

Browse files
Wei Yongjunmpe
authored andcommitted
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
1 parent 89c140b commit 92fe848

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/cpuidle/cpuidle-pseries.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <asm/idle.h>
2323
#include <asm/plpar_wrappers.h>
2424

25-
struct cpuidle_driver pseries_idle_driver = {
25+
static struct cpuidle_driver pseries_idle_driver = {
2626
.name = "pseries_idle",
2727
.owner = THIS_MODULE,
2828
};

0 commit comments

Comments
 (0)