Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Mike Frysinger <vapier@gentoo.org>
Cc: Karsten Keil <kkeil@suse.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mike Frysinger and committed by
Linus Torvalds
a7e27d5d 635244c5

+6 -1
+1 -1
include/linux/Kbuild
··· 92 92 header-y += ipsec.h 93 93 header-y += ipx.h 94 94 header-y += irda.h 95 - header-y += isdn_divertif.h 96 95 header-y += iso_fs.h 97 96 header-y += ixjuser.h 98 97 header-y += jffs2.h ··· 241 242 unifdef-y += ipv6_route.h 242 243 unifdef-y += isdn.h 243 244 unifdef-y += isdnif.h 245 + unifdef-y += isdn_divertif.h 244 246 unifdef-y += isdn_ppp.h 245 247 unifdef-y += isicom.h 246 248 unifdef-y += jbd.h
+5
include/linux/isdn_divertif.h
··· 24 24 #define DIVERT_REL_ERR 0x04 /* module not registered */ 25 25 #define DIVERT_REG_NAME isdn_register_divert 26 26 27 + #ifdef __KERNEL__ 28 + #include <linux/isdnif.h> 29 + #include <linux/types.h> 30 + 27 31 /***************************************************************/ 28 32 /* structure exchanging data between isdn hl and divert module */ 29 33 /***************************************************************/ ··· 44 40 /* function register */ 45 41 /*********************/ 46 42 extern int DIVERT_REG_NAME(isdn_divert_if *); 43 + #endif