aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd/jffs2-user.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-02-26 00:51:41 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-26 18:14:17 +0100
commitccef7ab534347e2e1e1ef398d2ec987d37e519f3 (patch)
tree1f74e2abb5ad84725e3eb52ac3320ffda480f281 /include/mtd/jffs2-user.h
parent9adfbfb611307060db54691bc7e6d53fdc12312b (diff)
downloadmrst-s0i3-test-ccef7ab534347e2e1e1ef398d2ec987d37e519f3.tar.gz
mrst-s0i3-test-ccef7ab534347e2e1e1ef398d2ec987d37e519f3.tar.xz
mrst-s0i3-test-ccef7ab534347e2e1e1ef398d2ec987d37e519f3.zip
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mtd/jffs2-user.h b/include/mtd/jffs2-user.h
index 001685d7fa8..fa94b0eb67c 100644
--- a/include/mtd/jffs2-user.h
+++ b/include/mtd/jffs2-user.h
@@ -7,6 +7,7 @@
/* This file is blessed for inclusion by userspace */
#include <linux/jffs2.h>
+#include <linux/types.h>
#include <endian.h>
#include <byteswap.h>
@@ -19,8 +20,8 @@
extern int target_endian;
-#define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
-#define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })
+#define t16(x) ({ __u16 __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
+#define t32(x) ({ __u32 __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })
#define cpu_to_je16(x) ((jint16_t){t16(x)})
#define cpu_to_je32(x) ((jint32_t){t32(x)})