From: Wei Yongjun Date: Tue, 14 Jul 2020 14:24:24 +0000 (+0800) Subject: cpuidle/pseries: Make symbol 'pseries_idle_driver' static X-Git-Tag: v5.9-rc1~100^2~244 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92fe8483b1660feaa602d8be6ca7efe95ae4789b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Wei Yongjun Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200714142424.66648-1-weiyongjun1@huawei.com --- diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c index 6513ef2af66a8..3e058ad2bb514 100644 --- a/drivers/cpuidle/cpuidle-pseries.c +++ b/drivers/cpuidle/cpuidle-pseries.c @@ -22,7 +22,7 @@ #include #include -struct cpuidle_driver pseries_idle_driver = { +static struct cpuidle_driver pseries_idle_driver = { .name = "pseries_idle", .owner = THIS_MODULE, };