diff options
author | Jaswinder Singh Rajput <jaswinderrajput@gmail.com> | 2009-02-02 21:44:09 +0530 |
---|---|---|
committer | Jaswinder Singh Rajput <jaswinderrajput@gmail.com> | 2009-02-02 21:44:09 +0530 |
commit | 7d7dc0d6b0565484e0623cb08b5dcdd56424697b (patch) | |
tree | 1f5abbf4af43824bf4cd28999e0da9f7f4dd38a8 /include | |
parent | 9fe03bc3139503fbad66016bf714f4575babf651 (diff) | |
download | linux-7d7dc0d6b0565484e0623cb08b5dcdd56424697b.tar.gz linux-7d7dc0d6b0565484e0623cb08b5dcdd56424697b.tar.bz2 linux-7d7dc0d6b0565484e0623cb08b5dcdd56424697b.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/socket.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 20fc4bbfca42..afc01909a428 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -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; |