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