]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[JFFS2] Repack some on-medium structures. ARM is weirder than I thought.
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 16 May 2006 22:03:08 +0000 (23:03 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 16 May 2006 22:03:08 +0000 (23:03 +0100)
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@infradead.org>
include/linux/jffs2.h

index 228ad72f7dd899d4e2161866cc5b9ab3df871bc9..a26fbd498c79bf2ba1545f32ad3ecfdce4f0c3f5 100644 (file)
 
 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
 {