diff options
author | Dave Airlie <airlied@redhat.com> | 2009-03-28 20:22:18 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-03-28 20:22:18 -0400 |
commit | 90f959bcb386da2c71613dcefc6a285e054a539e (patch) | |
tree | ee3e9dd4111d4aad12e579cb0c2c159114dff263 /include/linux/jffs2.h | |
parent | 41f13fe81dd1b08723ab9f3fc3c7f29cfa81f1a5 (diff) | |
parent | 07d43ba98621f08e252a48c96b258b4d572b0257 (diff) |
drm: merge Linux master into HEAD
Conflicts:
drivers/gpu/drm/drm_info.c
drivers/gpu/drm/drm_proc.c
drivers/gpu/drm/i915/i915_gem_debugfs.c
Diffstat (limited to 'include/linux/jffs2.h')
-rw-r--r-- | include/linux/jffs2.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/include/linux/jffs2.h b/include/linux/jffs2.h index da720bc3eb15..2b32d638147d 100644 --- a/include/linux/jffs2.h +++ b/include/linux/jffs2.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #ifndef __LINUX_JFFS2_H__ | 12 | #ifndef __LINUX_JFFS2_H__ |
13 | #define __LINUX_JFFS2_H__ | 13 | #define __LINUX_JFFS2_H__ |
14 | 14 | ||
15 | #include <linux/types.h> | ||
15 | #include <linux/magic.h> | 16 | #include <linux/magic.h> |
16 | 17 | ||
17 | /* You must include something which defines the C99 uintXX_t types. | 18 | /* You must include something which defines the C99 uintXX_t types. |
@@ -91,15 +92,15 @@ | |||
91 | byteswapping */ | 92 | byteswapping */ |
92 | 93 | ||
93 | typedef struct { | 94 | typedef struct { |
94 | uint32_t v32; | 95 | __u32 v32; |
95 | } __attribute__((packed)) jint32_t; | 96 | } __attribute__((packed)) jint32_t; |
96 | 97 | ||
97 | typedef struct { | 98 | typedef struct { |
98 | uint32_t m; | 99 | __u32 m; |
99 | } __attribute__((packed)) jmode_t; | 100 | } __attribute__((packed)) jmode_t; |
100 | 101 | ||
101 | typedef struct { | 102 | typedef struct { |
102 | uint16_t v16; | 103 | __u16 v16; |
103 | } __attribute__((packed)) jint16_t; | 104 | } __attribute__((packed)) jint16_t; |
104 | 105 | ||
105 | struct jffs2_unknown_node | 106 | struct jffs2_unknown_node |
@@ -121,12 +122,12 @@ struct jffs2_raw_dirent | |||
121 | jint32_t version; | 122 | jint32_t version; |
122 | jint32_t ino; /* == zero for unlink */ | 123 | jint32_t ino; /* == zero for unlink */ |
123 | jint32_t mctime; | 124 | jint32_t mctime; |
124 | uint8_t nsize; | 125 | __u8 nsize; |
125 | uint8_t type; | 126 | __u8 type; |
126 | uint8_t unused[2]; | 127 | __u8 unused[2]; |
127 | jint32_t node_crc; | 128 | jint32_t node_crc; |
128 | jint32_t name_crc; | 129 | jint32_t name_crc; |
129 | uint8_t name[0]; | 130 | __u8 name[0]; |
130 | }; | 131 | }; |
131 | 132 | ||
132 | /* The JFFS2 raw inode structure: Used for storage on physical media. */ | 133 | /* The JFFS2 raw inode structure: Used for storage on physical media. */ |
@@ -153,12 +154,12 @@ struct jffs2_raw_inode | |||
153 | jint32_t offset; /* Where to begin to write. */ | 154 | jint32_t offset; /* Where to begin to write. */ |
154 | jint32_t csize; /* (Compressed) data size */ | 155 | jint32_t csize; /* (Compressed) data size */ |
155 | jint32_t dsize; /* Size of the node's data. (after decompression) */ | 156 | jint32_t dsize; /* Size of the node's data. (after decompression) */ |
156 | uint8_t compr; /* Compression algorithm used */ | 157 | __u8 compr; /* Compression algorithm used */ |
157 | uint8_t usercompr; /* Compression algorithm requested by the user */ | 158 | __u8 usercompr; /* Compression algorithm requested by the user */ |
158 | jint16_t flags; /* See JFFS2_INO_FLAG_* */ | 159 | jint16_t flags; /* See JFFS2_INO_FLAG_* */ |
159 | jint32_t data_crc; /* CRC for the (compressed) data. */ | 160 | jint32_t data_crc; /* CRC for the (compressed) data. */ |
160 | jint32_t node_crc; /* CRC for the raw inode (excluding data) */ | 161 | jint32_t node_crc; /* CRC for the raw inode (excluding data) */ |
161 | uint8_t data[0]; | 162 | __u8 data[0]; |
162 | }; | 163 | }; |
163 | 164 | ||
164 | struct jffs2_raw_xattr { | 165 | struct jffs2_raw_xattr { |
@@ -168,12 +169,12 @@ struct jffs2_raw_xattr { | |||
168 | jint32_t hdr_crc; | 169 | jint32_t hdr_crc; |
169 | jint32_t xid; /* XATTR identifier number */ | 170 | jint32_t xid; /* XATTR identifier number */ |
170 | jint32_t version; | 171 | jint32_t version; |
171 | uint8_t xprefix; | 172 | __u8 xprefix; |
172 | uint8_t name_len; | 173 | __u8 name_len; |
173 | jint16_t value_len; | 174 | jint16_t value_len; |
174 | jint32_t data_crc; | 175 | jint32_t data_crc; |
175 | jint32_t node_crc; | 176 | jint32_t node_crc; |
176 | uint8_t data[0]; | 177 | __u8 data[0]; |
177 | } __attribute__((packed)); | 178 | } __attribute__((packed)); |
178 | 179 | ||
179 | struct jffs2_raw_xref | 180 | struct jffs2_raw_xref |