diff mbox series

[-next] pcmcia: at91_cf: make mc static

Message ID 20220914030045.190571-1-ruanjinjie@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] pcmcia: at91_cf: make mc static | expand

Commit Message

Jinjie Ruan Sept. 14, 2022, 3 a.m. UTC
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@huawei.com>
---
 drivers/pcmcia/at91_cf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dominik Brodowski Sept. 22, 2022, 2:25 p.m. UTC | #1
Am Wed, Sep 14, 2022 at 11:00:45AM +0800 schrieb ruanjinjie:
> 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@huawei.com>

Applied to the pcmcia tree.

Thanks,
	Dominik
Jinjie Ruan Sept. 23, 2022, 10:37 a.m. UTC | #2
Thank you very much

On 2022/9/22 22:25, Dominik Brodowski wrote:
> Am Wed, Sep 14, 2022 at 11:00:45AM +0800 schrieb ruanjinjie:
>> 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@huawei.com>
> 
> Applied to the pcmcia tree.
> 
> Thanks,
> 	Dominik
>
diff mbox series

Patch

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;
 
 /*--------------------------------------------------------------------------*/