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

[MTD] Remove #ifndef __KERNEL__ hack in <mtd/mtd-abi.h>

Now that we have headers_install, we don't need this crap.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

+1 -8
+1 -2
include/mtd/Kbuild
··· 1 - unifdef-y := mtd-abi.h 2 - header-y := inftl-user.h jffs2-user.h mtd-user.h nftl-user.h 1 + header-y := inftl-user.h jffs2-user.h mtd-abi.h mtd-user.h nftl-user.h
-6
include/mtd/mtd-abi.h
··· 7 7 #ifndef __MTD_ABI_H__ 8 8 #define __MTD_ABI_H__ 9 9 10 - #ifndef __KERNEL__ 11 - /* Urgh. The whole point of splitting this out into 12 - separate files was to avoid #ifdef __KERNEL__ */ 13 - #define __user 14 - #endif 15 - 16 10 struct erase_info_user { 17 11 uint32_t start; 18 12 uint32_t length;