Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sebastian Reichel <sre@kernel.org>

authored by

Wei Yongjun and committed by
Sebastian Reichel
c128d397 6bb1d272

+2 -1
+2 -1
drivers/power/power_supply_core.c
··· 537 537 } 538 538 #endif 539 539 540 - int __power_supply_register(struct device *parent, struct power_supply *psy, bool ws) 540 + static int __power_supply_register(struct device *parent, 541 + struct power_supply *psy, bool ws) 541 542 { 542 543 struct device *dev; 543 544 int rc;