OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bb1d27
)
power_supply: Fix sparse non static symbol warning
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 05:31:09 +0000
(13:31 +0800)
committer
Sebastian Reichel
<sre@kernel.org>
Sun, 20 Jul 2014 07:22:34 +0000
(09:22 +0200)
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>
drivers/power/power_supply_core.c
patch
|
blob
|
history
diff --git
a/drivers/power/power_supply_core.c
b/drivers/power/power_supply_core.c
index
5a5a24e
..
078afd6
100644
(file)
--- 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;