* [PATCH] vlan: eliminate gcc warnings with PROC_FS=n
@ 2005-01-25 5:43 Randy.Dunlap
2005-01-26 5:43 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2005-01-25 5:43 UTC (permalink / raw)
To: netdev, davem
[-- Attachment #1: Type: text/plain, Size: 303 bytes --]
Eliminate gcc warnings when PROC_FS=n:
net/8021q/vlan.c:232: warning: statement with no effect
net/appletalk/ddp.c:1893: warning: statement with no effect
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
net/8021q/vlanproc.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
[-- Attachment #2: vlan_procfs.patch --]
[-- Type: text/x-patch, Size: 548 bytes --]
diff -Naurp ./net/8021q/vlanproc.h~vlan_procfs ./net/8021q/vlanproc.h
--- ./net/8021q/vlanproc.h~vlan_procfs 2004-12-24 13:35:40.000000000 -0800
+++ ./net/8021q/vlanproc.h 2005-01-24 21:30:23.216681008 -0800
@@ -11,8 +11,8 @@ void vlan_proc_cleanup (void);
#define vlan_proc_init() (0)
#define vlan_proc_cleanup() do {} while(0)
-#define vlan_proc_add_dev(dev) ((void)(dev), 0)
-#define vlan_proc_rem_dev(dev) ((void)(dev), 0)
+#define vlan_proc_add_dev(dev) ({(void)(dev), 0;})
+#define vlan_proc_rem_dev(dev) ({(void)(dev), 0;})
#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] vlan: eliminate gcc warnings with PROC_FS=n
2005-01-25 5:43 [PATCH] vlan: eliminate gcc warnings with PROC_FS=n Randy.Dunlap
@ 2005-01-26 5:43 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-01-26 5:43 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: netdev
On Mon, 24 Jan 2005 21:43:10 -0800
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
>
> Eliminate gcc warnings when PROC_FS=n:
> net/8021q/vlan.c:232: warning: statement with no effect
> net/appletalk/ddp.c:1893: warning: statement with no effect
>
> Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Applied, thanks Randy.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-26 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 5:43 [PATCH] vlan: eliminate gcc warnings with PROC_FS=n Randy.Dunlap
2005-01-26 5:43 ` David S. Miller
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).