Skip to content

Commit 9663265

Browse files
committed
[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 parent 956e944 commit 9663265

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

‎include/mtd/Kbuild‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
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

‎include/mtd/mtd-abi.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
#ifndef __MTD_ABI_H__
88
#define __MTD_ABI_H__
99

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-
1610
struct erase_info_user {
1711
uint32_t start;
1812
uint32_t length;

0 commit comments

Comments
 (0)