diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-02-25 18:51:41 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-26 13:14:17 -0400 |
commit | ccef7ab534347e2e1e1ef398d2ec987d37e519f3 (patch) | |
tree | 1f74e2abb5ad84725e3eb52ac3320ffda480f281 /include/mtd/jffs2-user.h | |
parent | 9adfbfb611307060db54691bc7e6d53fdc12312b (diff) |
make MTD headers use strict integer types
The MTD headers traditionally use stdint types rather than
the kernel integer types. This converts them to do the
same as all the others.
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/mtd/jffs2-user.h')
-rw-r--r-- | include/mtd/jffs2-user.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mtd/jffs2-user.h b/include/mtd/jffs2-user.h index 001685d7fa88..fa94b0eb67c1 100644 --- a/include/mtd/jffs2-user.h +++ b/include/mtd/jffs2-user.h | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | /* This file is blessed for inclusion by userspace */ | 8 | /* This file is blessed for inclusion by userspace */ |
9 | #include <linux/jffs2.h> | 9 | #include <linux/jffs2.h> |
10 | #include <linux/types.h> | ||
10 | #include <endian.h> | 11 | #include <endian.h> |
11 | #include <byteswap.h> | 12 | #include <byteswap.h> |
12 | 13 | ||
@@ -19,8 +20,8 @@ | |||
19 | 20 | ||
20 | extern int target_endian; | 21 | extern int target_endian; |
21 | 22 | ||
22 | #define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); }) | 23 | #define t16(x) ({ __u16 __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); }) |
23 | #define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); }) | 24 | #define t32(x) ({ __u32 __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); }) |
24 | 25 | ||
25 | #define cpu_to_je16(x) ((jint16_t){t16(x)}) | 26 | #define cpu_to_je16(x) ((jint16_t){t16(x)}) |
26 | #define cpu_to_je32(x) ((jint32_t){t32(x)}) | 27 | #define cpu_to_je32(x) ((jint32_t){t32(x)}) |