[PATCH -next] pcmcia: at91_cf: make mc static

ruanjinjie ruanjinjie at huawei.com
Tue Sep 13 20:00:45 PDT 2022


The symbol is not used outside of the file, so mark it static.

Fixes the following warning:

./drivers/pcmcia/at91_cf.c:49:15: warning: symbol 'mc' was not declared. Should it be static?

Signed-off-by: ruanjinjie <ruanjinjie at huawei.com>
---
 drivers/pcmcia/at91_cf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c
index 92df2c2c5d07..c1297f0ebf03 100644
--- a/drivers/pcmcia/at91_cf.c
+++ b/drivers/pcmcia/at91_cf.c
@@ -46,7 +46,7 @@ struct at91_cf_data {
 #define AT91_IDE_SWAP_A0_A2	0x02
 };
 
-struct regmap *mc;
+static struct regmap *mc;
 
 /*--------------------------------------------------------------------------*/
 
-- 
2.25.1




More information about the linux-arm-kernel mailing list