Skip to content

Commit

Permalink
net: Fix linux/if_frad.h's suitability for userspace.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Hałasa authored and David S. Miller committed Jan 26, 2009
1 parent d6eb633 commit 3121a48
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/linux/if_frad.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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

0 comments on commit 3121a48

Please sign in to comment.