Commit a7e27d5d authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

sanitize linux/isdn_divertif.h for userspace

the isdn_divertif contains kernel-only references so I've wrapped them in
__KERNEL__ and add proper #include statements.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Cc: Karsten Keil <kkeil@suse.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 635244c5
...@@ -92,7 +92,6 @@ header-y += ip_mp_alg.h ...@@ -92,7 +92,6 @@ header-y += ip_mp_alg.h
header-y += ipsec.h header-y += ipsec.h
header-y += ipx.h header-y += ipx.h
header-y += irda.h header-y += irda.h
header-y += isdn_divertif.h
header-y += iso_fs.h header-y += iso_fs.h
header-y += ixjuser.h header-y += ixjuser.h
header-y += jffs2.h header-y += jffs2.h
...@@ -242,6 +241,7 @@ unifdef-y += ipv6.h ...@@ -242,6 +241,7 @@ unifdef-y += ipv6.h
unifdef-y += ipv6_route.h unifdef-y += ipv6_route.h
unifdef-y += isdn.h unifdef-y += isdn.h
unifdef-y += isdnif.h unifdef-y += isdnif.h
unifdef-y += isdn_divertif.h
unifdef-y += isdn_ppp.h unifdef-y += isdn_ppp.h
unifdef-y += isicom.h unifdef-y += isicom.h
unifdef-y += jbd.h unifdef-y += jbd.h
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
#define DIVERT_REL_ERR 0x04 /* module not registered */ #define DIVERT_REL_ERR 0x04 /* module not registered */
#define DIVERT_REG_NAME isdn_register_divert #define DIVERT_REG_NAME isdn_register_divert
#ifdef __KERNEL__
#include <linux/isdnif.h>
#include <linux/types.h>
/***************************************************************/ /***************************************************************/
/* structure exchanging data between isdn hl and divert module */ /* structure exchanging data between isdn hl and divert module */
/***************************************************************/ /***************************************************************/
...@@ -40,3 +44,4 @@ typedef struct ...@@ -40,3 +44,4 @@ typedef struct
/* function register */ /* function register */
/*********************/ /*********************/
extern int DIVERT_REG_NAME(isdn_divert_if *); extern int DIVERT_REG_NAME(isdn_divert_if *);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment