headers_check fix: linux/socket.h
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Mon, 2 Feb 2009 16:14:09 +0000 (21:44 +0530)
committerJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Mon, 2 Feb 2009 16:14:09 +0000 (21:44 +0530)
fix the following 'make headers_check' warning:

  usr/include/linux/socket.h:29: extern's make no sense in userspace

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
include/linux/socket.h

index 20fc4bbfca42b4327c346fd1f491661838062e34..afc01909a42858b6389d7370fed45d94219df302 100644 (file)
@@ -24,10 +24,12 @@ struct __kernel_sockaddr_storage {
 #include <linux/types.h>               /* pid_t                        */
 #include <linux/compiler.h>            /* __user                       */
 
-#ifdef CONFIG_PROC_FS
+#ifdef __KERNEL__
+# ifdef CONFIG_PROC_FS
 struct seq_file;
 extern void socket_seq_show(struct seq_file *seq);
-#endif
+# endif
+#endif /* __KERNEL__ */
 
 typedef unsigned short sa_family_t;