Hi,

In 2.4.2 with CONFIG_SYSCTL=n, I'm seeing the following warnings
while compiling af_unix.c:

gcc -D__KERNEL__ -I/usr/src/v2.4/linux-p720t/include -Wall -Wstrict-prototypes -O2  
-fno-strict-aliasing -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi 
-mshort-load-bytes -msoft-float    -c -o af_unix.o af_unix.c
af_unix.c:1855: warning: return-type defaults to `int'
af_unix.c:1855: warning: function declaration isn't a prototype
af_unix.c: In function `unix_sysctl_register':
af_unix.c:1855: warning: control reaches end of non-void function
af_unix.c: At top level:
af_unix.c:1856: warning: return-type defaults to `int'
af_unix.c:1856: warning: function declaration isn't a prototype
af_unix.c: In function `unix_sysctl_unregister':
af_unix.c:1856: warning: control reaches end of non-void function

The following patch fixes these warnings:

--- orig/net/unix/af_unix.c     Thu Feb 22 11:25:50 2001
+++ linux/net/unix/af_unix.c    Thu Feb 22 13:54:41 2001
@@ -1852,8 +1852,8 @@
 extern void unix_sysctl_register(void);
 extern void unix_sysctl_unregister(void);
 #else
-static inline unix_sysctl_register() {};
-static inline unix_sysctl_unregister() {};
+static inline void unix_sysctl_register(void) {}
+static inline void unix_sysctl_unregister(void) {}
 #endif
 
 static const char banner[] __initdata = KERN_INFO "NET4: Unix domain sockets 1.0/SMP 
for Linux NET4.0.\n";
 

--
Russell King ([EMAIL PROTECTED])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to