* [PATCH] atalk: remove gcc warning when PROC_FS=n
@ 2005-01-26 6:21 Randy.Dunlap
2005-01-27 7:37 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2005-01-26 6:21 UTC (permalink / raw)
To: acme, davem, netdev
[-- 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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] atalk: remove gcc warning when PROC_FS=n
2005-01-26 6:21 [PATCH] atalk: remove gcc warning when PROC_FS=n Randy.Dunlap
@ 2005-01-27 7:37 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-01-27 7:37 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: acme, netdev
On Tue, 25 Jan 2005 22:21:26 -0800
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
> appletalk: Fix gcc warning.
>
> with CONFIG_PROC_FS=n, gcc complains:
> net/appletalk/ddp.c:1893: warning: statement with no effect
Applied, thanks Randy.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-27 7:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26 6:21 [PATCH] atalk: remove gcc warning when PROC_FS=n Randy.Dunlap
2005-01-27 7:37 ` 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).