提交 c128d397 编写于 作者: W Wei Yongjun 提交者: Sebastian Reichel

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 6bb1d272
...@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy) ...@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy)
} }
#endif #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; struct device *dev;
int rc; int rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册