lkml.org 
[lkml]   [1999]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectpatch: Linux 2.2.0-pre3 ipc/util.c badness
I got these warnings when compiling for i386 with gcc 2.7.2.3 and a
minimal configuration
(http://www.jpj.net/~trevor/linux/config-2.2.0-pre3-minimum):

util.c:87: warning: `struct msgbuf' declared inside parameter list
util.c:87: warning: its scope is only this definition or declaration,
util.c:87: warning: which is probably not what you want.
util.c:93: warning: `struct msgbuf' declared inside parameter list
util.c:98: warning: `struct msqid_ds' declared inside parameter list

They are eliminated by the patch below.
___
Trevor Johnson

--- linux-2.2.0-pre3/ipc/util.c~ Tue Nov 24 09:21:11 1998
+++ linux-2.2.0-pre3/ipc/util.c Fri Jan 1 23:53:36 1999
@@ -12,7 +12,8 @@
#include <linux/mm.h>
#include <linux/shm.h>
#include <linux/init.h>
-
+#include <linux/msg.h>
+#include <asm/ipc.h>
#include <asm/uaccess.h>

#if defined(CONFIG_SYSVIPC)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.026 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site