From: Wei Yongjun Date: Sun, 20 Jul 2014 05:31:09 +0000 (+0800) Subject: power_supply: Fix sparse non static symbol warning X-Git-Tag: firefly_0821_release~176^2~3471^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c128d39737fbf23d978eb05a9c7915507a69c1df;p=firefly-linux-kernel-4.4.55.git power_supply: Fix sparse non static symbol warning Fixes the following sparse warnings: drivers/power/power_supply_core.c:540:5: warning: symbol '__power_supply_register' was not declared. Should it be static? Signed-off-by: Wei Yongjun Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index 5a5a24e7d43c..078afd61490d 100644 --- a/drivers/power/power_supply_core.c +++ b/drivers/power/power_supply_core.c @@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy) } #endif -int __power_supply_register(struct device *parent, struct power_supply *psy, bool ws) +static int __power_supply_register(struct device *parent, + struct power_supply *psy, bool ws) { struct device *dev; int rc;