* [PATCH] [RESEND] pcmcia: badge4: avoid unused function warning
@ 2017-07-21 20:18 Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2017-07-21 20:18 UTC (permalink / raw)
To: linux-pcmcia, Russell King; +Cc: Andrew Morton, Arnd Bergmann, linux-kernel
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>
---
Patch was sent on Jan 25 2016, no reply, resending
---
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 2f490930430d..93a5c7423d80 100644
--- a/drivers/pcmcia/sa1111_badge4.c
+++ b/drivers/pcmcia/sa1111_badge4.c
@@ -144,6 +144,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev)
sa11xx_drv_pcmcia_add_one);
}
+#ifndef MODULE
static int __init pcmv_setup(char *s)
{
int v[4];
@@ -158,3 +159,4 @@ static int __init pcmv_setup(char *s)
}
__setup("pcmv=", pcmv_setup);
+#endif
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] [RESEND] pcmcia: badge4: avoid unused function warning
@ 2017-09-11 20:11 Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2017-09-11 20:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: Arnd Bergmann, Russell King, linux-pcmcia, linux-kernel
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>
---
Patch was sent on Jan 25 2016, and on July 21, 2017 but got no
reply.
Andrew, could you pick it up?
---
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 2f490930430d..93a5c7423d80 100644
--- a/drivers/pcmcia/sa1111_badge4.c
+++ b/drivers/pcmcia/sa1111_badge4.c
@@ -144,6 +144,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev)
sa11xx_drv_pcmcia_add_one);
}
+#ifndef MODULE
static int __init pcmv_setup(char *s)
{
int v[4];
@@ -158,3 +159,4 @@ static int __init pcmv_setup(char *s)
}
__setup("pcmv=", pcmv_setup);
+#endif
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-11 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-21 20:18 [PATCH] [RESEND] pcmcia: badge4: avoid unused function warning Arnd Bergmann
2017-09-11 20:11 Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.