[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210308123147.2340998-1-weiyongjun1@huawei.com>
Date: Mon, 8 Mar 2021 12:31:47 +0000
From: 'Wei Yongjun <weiyongjun1@...wei.com>
To: <weiyongjun1@...wei.com>, Lee Jones <lee.jones@...aro.org>,
Lubomir Rintel <lkundrak@...sk>
CC: <linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>,
"Hulk Robot" <hulkci@...wei.com>
Subject: [PATCH -next RESEND] mfd: ene-kb3930: Make symbol 'kb3930_power_off' static
From: Wei Yongjun <weiyongjun1@...wei.com>
The sparse tool complains as follows:
drivers/mfd/ene-kb3930.c:36:15: warning:
symbol 'kb3930_power_off' was not declared. Should it be static?
This symbol is not used outside of ene-kb3930.c, so this
commit marks it static.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
Acked-by: Lubomir Rintel <lkundrak@...sk>
---
drivers/mfd/ene-kb3930.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/ene-kb3930.c b/drivers/mfd/ene-kb3930.c
index 83243e668e3f..1b73318d1f1f 100644
--- a/drivers/mfd/ene-kb3930.c
+++ b/drivers/mfd/ene-kb3930.c
@@ -33,7 +33,7 @@ struct kb3930 {
struct gpio_descs *off_gpios;
};
-struct kb3930 *kb3930_power_off;
+static struct kb3930 *kb3930_power_off;
#define EC_GPIO_WAVE 0
#define EC_GPIO_OFF_MODE 1
Powered by blists - more mailing lists