From: Arnd Bergmann <arnd@arndb.de>
To: linux-pcmcia@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Russell King <rmk+kernel@arm.linux.org.uk>,
Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH] pcmcia: badge4: avoid unused function warning
Date: Mon, 25 Jan 2016 16:57:32 +0100 [thread overview]
Message-ID: <1453737465-1960022-1-git-send-email-arnd@arndb.de> (raw)
The pcmv_setup is only used when the badge4 driver is built-in, but
not when it is a loadable module:
drivers/pcmcia/sa1111_badge4.c:153:122: error: 'pcmv_setup' defined but not used [-Werror=unused-function]
This adds an #ifdef to avoid the definition of the unused function
in the modular case.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/pcmcia/sa1111_badge4.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pcmcia/sa1111_badge4.c b/drivers/pcmcia/sa1111_badge4.c
index 12f0dd091477..a57dc1042ba0 100644
--- a/drivers/pcmcia/sa1111_badge4.c
+++ b/drivers/pcmcia/sa1111_badge4.c
@@ -150,6 +150,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev)
return ret;
}
+#ifndef MODULE
static int __init pcmv_setup(char *s)
{
int v[4];
@@ -164,3 +165,4 @@ static int __init pcmv_setup(char *s)
}
__setup("pcmv=", pcmv_setup);
+#endif
--
2.7.0
reply other threads:[~2016-01-25 15:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1453737465-1960022-1-git-send-email-arnd@arndb.de \
--to=arnd@arndb.de \
--cc=dbaryshkov@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pcmcia@lists.infradead.org \
--cc=rmk+kernel@arm.linux.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
all inboxes | Powered by JetHome®