linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ruanjinjie <ruanjinjie@huawei.com>
To: <linux@dominikbrodowski.net>, <nicolas.ferre@microchip.com>,
	<alexandre.belloni@bootlin.com>, <claudiu.beznea@microchip.com>,
	<pali@kernel.org>, <lpieralisi@kernel.org>,
	<rmk+kernel@armlinux.org.uk>,
	<linux-arm-kernel@lists.infradead.org>
Cc: <ruanjinjie@huawei.com>
Subject: [PATCH -next] pcmcia: at91_cf: make mc static
Date: Wed, 14 Sep 2022 11:00:45 +0800	[thread overview]
Message-ID: <20220914030045.190571-1-ruanjinjie@huawei.com> (raw)

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(-)

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2022-09-14  3:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14  3:00 ruanjinjie [this message]
2022-09-22 14:25 ` [PATCH -next] pcmcia: at91_cf: make mc static Dominik Brodowski
2022-09-23 10:37   ` Ruan Jinjie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220914030045.190571-1-ruanjinjie@huawei.com \
    --to=ruanjinjie@huawei.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=claudiu.beznea@microchip.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux@dominikbrodowski.net \
    --cc=lpieralisi@kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=pali@kernel.org \
    --cc=rmk+kernel@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).