[RFC PATCH v3 2/3] ARM: VFP: make user_vfp struct packed
imre.deak at nokia.com
imre.deak at nokia.com
Mon Mar 29 12:17:39 EDT 2010
From: Imre Deak <imre.deak at nokia.com>
An upcoming patch will include user_vfp as a member in another struct and
this will cause the next member to be 8 byte aligned as well. Since the
struct is part of an ABI it's better not leave such alignment decisions
to the compiler.
Signed-off-by: Imre Deak <imre.deak at nokia.com>
---
arch/arm/include/asm/user.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/user.h b/arch/arm/include/asm/user.h
index df95e05..5660777 100644
--- a/arch/arm/include/asm/user.h
+++ b/arch/arm/include/asm/user.h
@@ -88,6 +88,6 @@ struct user{
struct user_vfp {
unsigned long long fpregs[32];
unsigned long fpscr;
-};
+} __attribute__((packed));
#endif /* _ARM_USER_H */
--
1.7.0.2
More information about the linux-arm-kernel
mailing list