netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: jgarzik@pobox.com, jt@hpl.hp.com, netdev@oss.sgi.com
Subject: [PATCH] arlan: remove gcc warning with CONFIG_PROC_FS=n
Date: Tue, 25 Jan 2005 22:20:14 -0800	[thread overview]
Message-ID: <41F7369E.8070704@osdl.org> (raw)

[-- 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
 

             reply	other threads:[~2005-01-26  6:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26  6:20 Randy.Dunlap [this message]
2005-01-27  1:38 ` [PATCH] (v2) arlan: remove gcc warning with CONFIG_PROC_FS=n Randy.Dunlap
2005-01-27 16:47   ` Jean Tourrilhes

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=41F7369E.8070704@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=jgarzik@pobox.com \
    --cc=jt@hpl.hp.com \
    --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).