]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
net: Fix linux/if_frad.h's suitability for userspace.
authorKrzysztof Hałasa <khc@pm.waw.pl>
Mon, 26 Jan 2009 20:30:12 +0000 (12:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2009 20:30:12 +0000 (12:30 -0800)
The userspace interfaces are protected by CONFIG_* ifdefs
and that of course can't work.

Reported by Jaswinder Singh Rajput.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_frad.h

index 5c34240de746dd3c9123f481c7bea984acfa4827..60e16a551dd652c2b5fe351b0e18a4876b54f16d 100644 (file)
@@ -26,8 +26,6 @@
 
 #include <linux/if.h>
 
-#if defined(CONFIG_DLCI) || defined(CONFIG_DLCI_MODULE)
-
 /* Structures and constants associated with the DLCI device driver */
 
 struct dlci_add
@@ -127,6 +125,8 @@ struct frad_conf
 
 #ifdef __KERNEL__
 
+#if defined(CONFIG_DLCI) || defined(CONFIG_DLCI_MODULE)
+
 /* these are the fields of an RFC 1490 header */
 struct frhdr
 {
@@ -190,12 +190,10 @@ struct frad_local
    int               buffer;           /* current buffer for S508 firmware */
 };
 
-#endif /* __KERNEL__ */
-
 #endif /* CONFIG_DLCI || CONFIG_DLCI_MODULE */
 
-#ifdef __KERNEL__
 extern void dlci_ioctl_set(int (*hook)(unsigned int, void __user *));
-#endif
+
+#endif /* __KERNEL__ */
 
 #endif