]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: Keep fixing merged ipcbuf.h
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 2 Nov 2005 23:13:58 +0000 (10:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 3 Nov 2005 05:58:17 +0000 (16:58 +1100)
Oops, replacing the two u64s in struct ipc64_perm with __u32s changed
the alignment of that structure, which could mess up userspace.
Revert to using two unsigned long longs (which is what ppc32 had
originally).  ppc64 orignally had two unsigned longs, but long long is
the same size on 64 bit, so this should be ok there too.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/ipcbuf.h

index 71382c1ec6e3fb6d200c3b06985a2ed65a64c63a..2c3e1d94db1d04e2051570ad54f4c3122e335377 100644 (file)
@@ -27,7 +27,8 @@ struct ipc64_perm
        __kernel_mode_t mode;
        unsigned int    seq;
        unsigned int    __pad1;
-       __u32           __unused[4];
+       unsigned long long __unused1;
+       unsigned long long __unused2;
 };
 
 #endif /* _ASM_POWERPC_IPCBUF_H */