* [TRIVIAL] ipw2200: fix a gcc compile warning
@ 2006-05-18 14:59 jens m. noedler
2006-05-19 2:42 ` [Ipw2100-devel] " Zhu Yi
0 siblings, 1 reply; 2+ messages in thread
From: jens m. noedler @ 2006-05-18 14:59 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial, ipw2100-devel
Hi,
If one compiles the ipw2200 module without having CONFIG_IPW2200_DEBUG
set gcc will warn. This patch fixes the following warning and applies
to 2.6.17-rc4-git6.
CC [M] drivers/net/wireless/ipw2200.o
drivers/net/wireless/ipw2200.c:50: Warnung: `debug' defined but not used
Kind regards, Jens Nödler
Signed-off-by: jens m. noedler <noedler@web.de>
---
--- drivers/net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200
+++ drivers/net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200
@@ -45,8 +45,11 @@ MODULE_VERSION(DRV_VERSION);
MODULE_AUTHOR(DRV_COPYRIGHT);
MODULE_LICENSE("GPL");
-static int cmdlog = 0;
+#ifdef CONFIG_IPW2200_DEBUG
static int debug = 0;
+#endif
+
+static int cmdlog = 0;
static int channel = 0;
static int mode = 0;
--
jens m. noedler
noedler@web.de
pgp: 0x9f0920bb
http://noedler.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Ipw2100-devel] [TRIVIAL] ipw2200: fix a gcc compile warning
2006-05-18 14:59 [TRIVIAL] ipw2200: fix a gcc compile warning jens m. noedler
@ 2006-05-19 2:42 ` Zhu Yi
0 siblings, 0 replies; 2+ messages in thread
From: Zhu Yi @ 2006-05-19 2:42 UTC (permalink / raw)
To: jens m. noedler; +Cc: linux-kernel, trivial, ipw2100-devel
On Thu, 2006-05-18 at 16:59 +0200, jens m. noedler wrote:
> --- drivers/net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200
> +++ drivers/net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200
> @@ -45,8 +45,11 @@ MODULE_VERSION(DRV_VERSION);
> MODULE_AUTHOR(DRV_COPYRIGHT);
> MODULE_LICENSE("GPL");
>
> -static int cmdlog = 0;
> +#ifdef CONFIG_IPW2200_DEBUG
> static int debug = 0;
> +#endif
> +
> +static int cmdlog = 0;
> static int channel = 0;
> static int mode = 0;
The patch is already in wireless-2.6 GIT. Thank you anyway.
Thanks,
-yi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-19 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18 14:59 [TRIVIAL] ipw2200: fix a gcc compile warning jens m. noedler
2006-05-19 2:42 ` [Ipw2100-devel] " Zhu Yi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox