netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: jgarzik@pobox.com, jt@hpl.hp.com, netdev@oss.sgi.com
Subject: [PATCH] (v2) arlan: remove gcc warning with CONFIG_PROC_FS=n
Date: Wed, 26 Jan 2005 17:38:13 -0800	[thread overview]
Message-ID: <41F84605.5060501@osdl.org> (raw)
In-Reply-To: <41F7369E.8070704@osdl.org>

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

  reply	other threads:[~2005-01-27  1:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26  6:20 [PATCH] arlan: remove gcc warning with CONFIG_PROC_FS=n Randy.Dunlap
2005-01-27  1:38 ` Randy.Dunlap [this message]
2005-01-27 16:47   ` [PATCH] (v2) " 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=41F84605.5060501@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).