* [PATCH -next] power_supply: Fix sparse non static symbol warning
@ 2014-07-20 5:31 weiyj_lk
2014-07-20 7:30 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: weiyj_lk @ 2014-07-20 5:31 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov, David Woodhouse, Zhang Rui, Rafael J. Wysocki
Cc: Wei Yongjun, linux-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
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>
---
drivers/power/power_supply_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c
index 5a5a24e..078afd6 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] power_supply: Fix sparse non static symbol warning
2014-07-20 5:31 [PATCH -next] power_supply: Fix sparse non static symbol warning weiyj_lk
@ 2014-07-20 7:30 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2014-07-20 7:30 UTC (permalink / raw)
To: weiyj_lk
Cc: Dmitry Eremin-Solenikov, David Woodhouse, Zhang Rui,
Rafael J. Wysocki, Wei Yongjun, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 452 bytes --]
Hi,
On Sun, Jul 20, 2014 at 01:31:09PM +0800, weiyj_lk@163.com wrote:
> 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>
Applied to battery-2.6.git:
http://git.infradead.org/battery-2.6.git/commit/c128d39737fbf23d978eb05a9c7915507a69c1df
-- Sebastian
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-20 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-20 5:31 [PATCH -next] power_supply: Fix sparse non static symbol warning weiyj_lk
2014-07-20 7:30 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®