7 -#include <asm/types.h>
8 #include <linux/jffs2.h>
17 -#include <asm/types.h>
18 #include <linux/jffs2.h>
23 @@ -94,8 +94,7 @@ static inline struct page * rb_insert_pa
24 #ifndef _LINUX_RBTREE_H
25 #define _LINUX_RBTREE_H
27 -#include <linux/kernel.h>
28 -#include <linux/stddef.h>
33 @@ -131,7 +130,9 @@ static inline void rb_set_color(struct r
35 #define RB_ROOT (struct rb_root) { NULL, }
38 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
41 #define container_of(ptr, type, member) ({ \
42 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
43 --- a/include/mtd/ubi-media.h
44 +++ b/include/mtd/ubi-media.h
46 #ifndef __UBI_MEDIA_H__
47 #define __UBI_MEDIA_H__
50 #include <asm/byteorder.h>
53 +typedef uint8_t __u8;
54 +typedef uint16_t __be16;
55 +typedef uint32_t __be32;
56 +typedef uint64_t __be64;
59 /* The version of UBI images supported by this implementation */