7 -#include <asm/types.h>
8 #include <linux/jffs2.h>
17 -#include <asm/types.h>
18 #include <linux/jffs2.h>
23 @@ -1100,6 +1100,7 @@ static struct {
27 +#ifndef NO_ACL_SUPPORT
28 static void formalize_posix_acl(void *xvalue, int *value_len)
30 struct posix_acl_xattr_header *pacl_header;
31 @@ -1151,6 +1152,7 @@ static void formalize_posix_acl(void *xv
32 memcpy(xvalue, buffer, offset);
37 static xattr_entry_t *create_xattr_entry(int xprefix, char *xname, char *xvalue, int value_len)
39 @@ -1205,9 +1207,11 @@ static xattr_entry_t *find_xattr_entry(i
41 xentry_hash = xcalloc(1, sizeof(xe) * XATTRENTRY_HASHSIZE);
43 +#ifndef NO_ACL_SUPPORT
44 if (xprefix == JFFS2_XPREFIX_ACL_ACCESS
45 || xprefix == JFFS2_XPREFIX_ACL_DEFAULT)
46 formalize_posix_acl(xvalue, &value_len);
49 name_len = strlen(xname);
50 index = (crc32(0, xname, name_len) ^ crc32(0, xvalue, value_len)) % XATTRENTRY_HASHSIZE;
53 @@ -94,8 +94,7 @@ static inline struct page * rb_insert_pa
54 #ifndef _LINUX_RBTREE_H
55 #define _LINUX_RBTREE_H
57 -#include <linux/kernel.h>
58 -#include <linux/stddef.h>
63 @@ -131,7 +130,9 @@ static inline void rb_set_color(struct r
65 #define RB_ROOT (struct rb_root) { NULL, }
68 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
71 #define container_of(ptr, type, member) ({ \
72 const typeof( ((type *)0)->member ) *__mptr = (ptr); \