power: supply: Make symbol 'surface_ac_pm_ops' static
Subsystems (4)
PATCH 1/1 power: supply: Make symbol 'surface_ac_pm_ops' static
The sparse tool complains as follows:
drivers/power/supply/surface_charger.c:229:1: warning:
symbol 'surface_ac_pm_ops' was not declared. Should it be static?
This symbol is not used outside of surface_charger.c, so this commit marks it static.
--- drivers/power/supply/surface_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/supply/surface_charger.c +1 -1
@@ -226,7 +226,7 @@ static int __maybe_unused surface_ac_resume(struct device *dev) {return spwr_ac_recheck (dev_get_drvdata (dev)); } -SIMPLE_DEV_PM_OPS (surface_ac_pm_ops,NULL , surface_ac_resume); +static SIMPLE_DEV_PM_OPS(surface_ac_pm_ops, NULL, surface_ac_resume);static int surface_ac_probe (struct ssam_device *sdev) {
Quoted 10 lines · Qiheng Lin
The sparse tool complains as follows:
drivers/power/supply/surface_charger.c:229:1: warning:
symbol 'surface_ac_pm_ops' was not declared. Should it be static?This symbol is not used outside of
surface_charger.c, so this commit marks it static.Reported-by Hulk Robot <[email protected]>Signed-off-by Qiheng Lin <[email protected]>
Quoted 18 lines
--- drivers/power/supply/surface_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/power/supply/surface_charger.c +1
-1@@ -226,7 +226,7 @@ static int __maybe_unused surface_ac_resume(struct device *dev) {return spwr_ac_recheck (dev_get_drvdata (dev)); } -SIMPLE_DEV_PM_OPS (surface_ac_pm_ops,NULL , surface_ac_resume); +static SIMPLE_DEV_PM_OPS(surface_ac_pm_ops, NULL, surface_ac_resume);static int surface_ac_probe (struct ssam_device *sdev) {
Hi,
Quoted 6 lines · Maximilian Luz
Quoted 5 lines · Qiheng Lin
The sparse tool complains as follows:
drivers/power/supply/surface_charger.c:229:1: warning:
symbol 'surface_ac_pm_ops' was not declared. Should it be static?
Quoted 7 lines
Quoted 5 lines
This symbol is not used outside of
surface_charger.c, so this commit marks it static.Reported-by Hulk Robot <[email protected]>Signed-off-by Qiheng Lin <[email protected]>Acked-by Maximilian Luz <[email protected]>
Thanks, queued.
-- Sebastian
Quoted 17 lines
Quoted 17 lines
--- drivers/power/supply/surface_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/power/supply/surface_charger.c +1
-1@@ -226,7 +226,7 @@ static int __maybe_unused surface_ac_resume(struct device *dev) {return spwr_ac_recheck (dev_get_drvdata (dev)); } -SIMPLE_DEV_PM_OPS (surface_ac_pm_ops,NULL , surface_ac_resume); +static SIMPLE_DEV_PM_OPS(surface_ac_pm_ops, NULL, surface_ac_resume);static int surface_ac_probe (struct ssam_device *sdev) {