Commit 7d7dc0d6b0565484e0623cb08b5dcdd56424697b

Authored by Jaswinder Singh Rajput
1 parent 9fe03bc313

headers_check fix: linux/socket.h

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

include/linux/socket.h
... ... @@ -24,10 +24,12 @@
24 24 #include <linux/types.h> /* pid_t */
25 25 #include <linux/compiler.h> /* __user */
26 26  
27   -#ifdef CONFIG_PROC_FS
  27 +#ifdef __KERNEL__
  28 +# ifdef CONFIG_PROC_FS
28 29 struct seq_file;
29 30 extern void socket_seq_show(struct seq_file *seq);
30   -#endif
  31 +# endif
  32 +#endif /* __KERNEL__ */
31 33  
32 34 typedef unsigned short sa_family_t;
33 35