From: Martin Schwidefsky <schwidefsky@de.ibm.com> Date: Mon, 25 Oct 2010 14:10:39 +0000 (+0200) Subject: [S390] correct alignment of cpuid structure X-Git-Tag: firefly_0821_release~7613^2~3648^2~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=178514d7e3e8cfba087b3a208e22a54ce65e8f34;p=firefly-linux-kernel-4.4.55.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 <schwidefsky@de.ibm.com> --- diff --git a/arch/s390/include/asm/cpu.h b/arch/s390/include/asm/cpu.h index 471234b90574..e0b69540216f 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 */