From: Jaswinder Singh Rajput Date: Mon, 2 Feb 2009 16:14:09 +0000 (+0530) Subject: headers_check fix: linux/socket.h X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7d7dc0d6b0565484e0623cb08b5dcdd56424697b;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/include/linux/socket.h b/include/linux/socket.h index 20fc4bbfca4..afc01909a42 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -24,10 +24,12 @@ struct __kernel_sockaddr_storage { #include /* pid_t */ #include /* __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;