* [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
* [PATCH] (v2) arlan: remove gcc warning with CONFIG_PROC_FS=n
2005-01-26 6:20 [PATCH] arlan: remove gcc warning with CONFIG_PROC_FS=n Randy.Dunlap
@ 2005-01-27 1:38 ` Randy.Dunlap
2005-01-27 16:47 ` Jean Tourrilhes
0 siblings, 1 reply; 3+ messages in thread
From: Randy.Dunlap @ 2005-01-27 1:38 UTC (permalink / raw)
Cc: jgarzik, jt, netdev
[-- Attachment #1: Type: text/plain, Size: 438 bytes --]
Here's an update (as pointed out off-list).
Please replace the first one if that works for you.
arlan: Fix gcc warning.
With CONFIG_PROC_FS=n, gcc complains:
drivers/net/wireless/arlan-main.c:1858: warning: statement with no effect
Also remove a useless semi-colon on a #define.
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/net/wireless/arlan.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
[-- Attachment #2: arlan_procfs2.patch --]
[-- Type: text/x-patch, Size: 567 bytes --]
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-26 13:58:02.797111176 -0800
@@ -43,8 +43,8 @@
extern int init_arlan_proc(void);
extern void cleanup_arlan_proc(void);
#else
-#define init_arlan_proc() (0)
-#define cleanup_arlan_proc() do { } while (0);
+#define init_arlan_proc() ({ 0; })
+#define cleanup_arlan_proc() do { } while (0)
#endif
extern struct net_device *arlan_device[MAX_ARLANS];
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] (v2) arlan: remove gcc warning with CONFIG_PROC_FS=n
2005-01-27 1:38 ` [PATCH] (v2) " Randy.Dunlap
@ 2005-01-27 16:47 ` Jean Tourrilhes
0 siblings, 0 replies; 3+ messages in thread
From: Jean Tourrilhes @ 2005-01-27 16:47 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: jgarzik, netdev
On Wed, Jan 26, 2005 at 05:38:13PM -0800, Randy.Dunlap wrote:
> Here's an update (as pointed out off-list).
> Please replace the first one if that works for you.
>
>
> arlan: Fix gcc warning.
>
> With CONFIG_PROC_FS=n, gcc complains:
> drivers/net/wireless/arlan-main.c:1858: warning: statement with no effect
>
> Also remove a useless semi-colon on a #define.
>
> Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
>
> diffstat:=
> drivers/net/wireless/arlan.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
I've never touched that driver, but it looks ok to me. I hope
Jeff will pick it up.
Jean
^ 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).