From: Martin Schwidefsky Date: Mon, 25 Oct 2010 14:10:39 +0000 (+0200) Subject: [S390] correct alignment of cpuid structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=178514d7e3e8cfba087b3a208e22a54ce65e8f34;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [S390] correct alignment of cpuid structure The store-cpu-id instruction has a minimum alignment of 8. Reflect that in the definition of struct cpuid. Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/include/asm/cpu.h b/arch/s390/include/asm/cpu.h index 471234b9057..e0b69540216 100644 --- a/arch/s390/include/asm/cpu.h +++ b/arch/s390/include/asm/cpu.h @@ -20,7 +20,7 @@ struct cpuid unsigned int ident : 24; unsigned int machine : 16; unsigned int unused : 16; -} __packed; +} __attribute__ ((packed, aligned(8))); #endif /* __ASSEMBLY__ */ #endif /* _ASM_S390_CPU_H */