From: "Randy.Dunlap" <rddunlap@osdl.org>
To: netdev <netdev@oss.sgi.com>, davem@davemloft.net
Subject: [PATCH] vlan: eliminate gcc warnings with PROC_FS=n
Date: Mon, 24 Jan 2005 21:43:10 -0800 [thread overview]
Message-ID: <41F5DC6E.8070203@osdl.org> (raw)
[-- 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
next reply other threads:[~2005-01-25 5:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-25 5:43 Randy.Dunlap [this message]
2005-01-26 5:43 ` [PATCH] vlan: eliminate gcc warnings with PROC_FS=n David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41F5DC6E.8070203@osdl.org \
--to=rddunlap@osdl.org \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).