linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] power/supply/cw2015: Make some symbols static
@ 2020-05-06 11:45 ChenTao
  2020-05-06 19:49 ` Tobias Schramm
  0 siblings, 1 reply; 3+ messages in thread
From: ChenTao @ 2020-05-06 11:45 UTC (permalink / raw)
  To: t.schramm, sre; +Cc: linux-pm, linux-kernel, chentao107

Fix the following warning:

drivers/power/supply/cw2015_battery.c:96:5: warning:
'cw_update_profile' was not declared. Should it be static?
drivers/power/supply/cw2015_battery.c:712:1: warning:
'cw_bat_pm_ops' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: ChenTao <chentao107@huawei.com>
---
 drivers/power/supply/cw2015_battery.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c
index 8603da6f4593..19f62ea957ee 100644
--- a/drivers/power/supply/cw2015_battery.c
+++ b/drivers/power/supply/cw2015_battery.c
@@ -93,7 +93,7 @@ static int cw_read_word(struct cw_battery *cw_bat, u8 reg, u16 *val)
 	return 0;
 }
 
-int cw_update_profile(struct cw_battery *cw_bat)
+static int cw_update_profile(struct cw_battery *cw_bat)
 {
 	int ret;
 	unsigned int reg_val;
@@ -709,7 +709,7 @@ static int __maybe_unused cw_bat_resume(struct device *dev)
 	return 0;
 }
 
-SIMPLE_DEV_PM_OPS(cw_bat_pm_ops, cw_bat_suspend, cw_bat_resume);
+static SIMPLE_DEV_PM_OPS(cw_bat_pm_ops, cw_bat_suspend, cw_bat_resume);
 
 static int cw_bat_remove(struct i2c_client *client)
 {
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] power/supply/cw2015: Make some symbols static
  2020-05-06 11:45 [PATCH -next] power/supply/cw2015: Make some symbols static ChenTao
@ 2020-05-06 19:49 ` Tobias Schramm
  2020-05-09  0:15   ` Sebastian Reichel
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Schramm @ 2020-05-06 19:49 UTC (permalink / raw)
  To: ChenTao; +Cc: sre, linux-pm, linux-kernel


> Fix the following warning:
> 
> drivers/power/supply/cw2015_battery.c:96:5: warning:
> 'cw_update_profile' was not declared. Should it be static?
> drivers/power/supply/cw2015_battery.c:712:1: warning:
> 'cw_bat_pm_ops' was not declared. Should it be static?
> 

LGTM.

Acked-by: Tobias Schramm <t.schramm@manjaro.org>
Tested-by: Tobias Schramm <t.schramm@manjaro.org>

Thanks,

Tobias

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] power/supply/cw2015: Make some symbols static
  2020-05-06 19:49 ` Tobias Schramm
@ 2020-05-09  0:15   ` Sebastian Reichel
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2020-05-09  0:15 UTC (permalink / raw)
  To: Tobias Schramm; +Cc: ChenTao, linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

Hi,

On Wed, May 06, 2020 at 09:49:26PM +0200, Tobias Schramm wrote:
> > Fix the following warning:
> > 
> > drivers/power/supply/cw2015_battery.c:96:5: warning:
> > 'cw_update_profile' was not declared. Should it be static?
> > drivers/power/supply/cw2015_battery.c:712:1: warning:
> > 'cw_bat_pm_ops' was not declared. Should it be static?
> > 
> 
> LGTM.
> 
> Acked-by: Tobias Schramm <t.schramm@manjaro.org>
> Tested-by: Tobias Schramm <t.schramm@manjaro.org>

Thanks, queued.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-09  0:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 11:45 [PATCH -next] power/supply/cw2015: Make some symbols static ChenTao
2020-05-06 19:49 ` Tobias Schramm
2020-05-09  0:15   ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).