netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arlan: remove gcc warning with CONFIG_PROC_FS=n
@ 2005-01-26  6:20 Randy.Dunlap
  2005-01-27  1:38 ` [PATCH] (v2) " Randy.Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Randy.Dunlap @ 2005-01-26  6:20 UTC (permalink / raw)
  To: jgarzik, jt, netdev

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]


arlan: Fix gcc warning.

With CONFIG_PROC_FS=n, gcc complains:
drivers/net/wireless/arlan-main.c:1858: warning: statement with no effect

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
  drivers/net/wireless/arlan.h |    2 +-
  1 files changed, 1 insertion(+), 1 deletion(-)

[-- Attachment #2: arlan_procfs.patch --]
[-- Type: text/x-patch, Size: 754 bytes --]


arlan: Fix gcc warning.

With CONFIG_PROC_FS=n, gcc complains:
drivers/net/wireless/arlan-main.c:1858: warning: statement with no effect

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
 drivers/net/wireless/arlan.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./drivers/net/wireless/arlan.h~arlan_procfs ./drivers/net/wireless/arlan.h
--- ./drivers/net/wireless/arlan.h~arlan_procfs	2005-01-24 13:00:20.000000000 -0800
+++ ./drivers/net/wireless/arlan.h	2005-01-25 21:09:01.963641016 -0800
@@ -43,7 +43,7 @@
 extern int init_arlan_proc(void);
 extern void cleanup_arlan_proc(void);
 #else
-#define init_arlan_proc()	(0)
+#define init_arlan_proc()	({ 0; })
 #define cleanup_arlan_proc()	do { } while (0);
 #endif
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-27 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26  6:20 [PATCH] arlan: remove gcc warning with CONFIG_PROC_FS=n Randy.Dunlap
2005-01-27  1:38 ` [PATCH] (v2) " Randy.Dunlap
2005-01-27 16:47   ` Jean Tourrilhes

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