From: Colin Ian King Date: Tue, 13 Mar 2018 10:54:06 +0000 (+0000) Subject: power: reset: make function sc27xx_poweroff_shutdown static X-Git-Tag: v4.17-rc1~155^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93619fdec96fa1cd19e5dffc5031cf4c63e6b431;p=thirdparty%2Fkernel%2Flinux.git power: reset: make function sc27xx_poweroff_shutdown static The function sc27xx_poweroff_shutdown is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/power/reset/sc27xx-poweroff.c:28:6: warning: symbol 'sc27xx_poweroff_shutdown' was not declared. Should it be static? Signed-off-by: Colin Ian King Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/reset/sc27xx-poweroff.c b/drivers/power/reset/sc27xx-poweroff.c index 65c477eee559c..29fb08b8faa0a 100644 --- a/drivers/power/reset/sc27xx-poweroff.c +++ b/drivers/power/reset/sc27xx-poweroff.c @@ -25,7 +25,7 @@ static struct regmap *regmap; * taking cpus down to avoid racing regmap or spi mutex lock when poweroff * system through PMIC. */ -void sc27xx_poweroff_shutdown(void) +static void sc27xx_poweroff_shutdown(void) { #ifdef CONFIG_PM_SLEEP_SMP int cpu = smp_processor_id();