[JFFS2] Repack some on-medium structures. ARM is weirder than I
thought.
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue May 16 18:59:01 EDT 2006
Commit: ba9627b85fcb5ed67285ca0711f0f4d1e965746e
Parent: 35af68b53a62c98bf551aaae7be179bde248eb34
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Tue May 16 23:03:08 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue May 16 23:03:08 2006 +0100
[JFFS2] Repack some on-medium structures. ARM is weirder than I thought.
We have to pack at least the jint16_t structure, because otherwise it'll
be four bytes in size. Thankfully, we can do that and _not_ pack the
actual node structures, and the compiler still doesn't emit stupid code.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
include/linux/jffs2.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/jffs2.h b/include/linux/jffs2.h
index 228ad72..a26fbd4 100644
--- a/include/linux/jffs2.h
+++ b/include/linux/jffs2.h
@@ -82,15 +82,15 @@ #define JFFS2_INO_FLAG_USERCOMPR 2 /* U
typedef struct {
uint32_t v32;
-} jint32_t;
+} __attribute__((packed)) jint32_t;
typedef struct {
uint32_t m;
-} jmode_t;
+} __attribute__((packed)) jmode_t;
typedef struct {
uint16_t v16;
-} jint16_t;
+} __attribute__((packed)) jint16_t;
struct jffs2_unknown_node
{
More information about the linux-mtd-cvs
mailing list