netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: acme@conectiva.com.br, davem@davemloft.net, netdev <netdev@oss.sgi.com>
Subject: [PATCH] atalk: remove gcc warning when PROC_FS=n
Date: Tue, 25 Jan 2005 22:21:26 -0800	[thread overview]
Message-ID: <41F736E6.6000901@osdl.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]


appletalk: Fix gcc warning.

with CONFIG_PROC_FS=n, gcc complains:
net/appletalk/ddp.c:1893: warning: statement with no effect

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
  include/linux/atalk.h |    2 +-
  1 files changed, 1 insertion(+), 1 deletion(-)

[-- Attachment #2: atalk_procfs.patch --]
[-- Type: text/x-patch, Size: 493 bytes --]


diff -Naurp ./include/linux/atalk.h~atalk_procfs ./include/linux/atalk.h
--- ./include/linux/atalk.h~atalk_procfs	2005-01-24 13:00:23.000000000 -0800
+++ ./include/linux/atalk.h	2005-01-25 19:43:22.647935760 -0800
@@ -229,7 +229,7 @@ extern void atalk_unregister_sysctl(void
 extern int atalk_proc_init(void);
 extern void atalk_proc_exit(void);
 #else
-#define atalk_proc_init()	0
+#define atalk_proc_init()	({ 0; })
 #define atalk_proc_exit()	do { } while(0)
 #endif /* CONFIG_PROC_FS */
 

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26  6:21 Randy.Dunlap [this message]
2005-01-27  7:37 ` [PATCH] atalk: remove gcc warning when 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=41F736E6.6000901@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=acme@conectiva.com.br \
    --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).