From: Helge Deller Date: Sat, 25 Nov 2023 08:11:56 +0000 (+0100) Subject: parisc: Mark lock_aligned variables 16-byte aligned on SMP X-Git-Tag: v6.7-rc3~2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b28fc0d8739c03e7b6c44914a9d00d4c6dddc0ea;p=thirdparty%2Flinux.git parisc: Mark lock_aligned variables 16-byte aligned on SMP On parisc we need 16-byte alignment for variables which are used for locking. Mark the __lock_aligned attribute acordingly so that the .data..lock_aligned section will get that alignment in the generated object files. Signed-off-by: Helge Deller Cc: stable@vger.kernel.org # v6.0+ --- diff --git a/arch/parisc/include/asm/ldcw.h b/arch/parisc/include/asm/ldcw.h index ee9e071859b2f..47ebc4c91eaff 100644 --- a/arch/parisc/include/asm/ldcw.h +++ b/arch/parisc/include/asm/ldcw.h @@ -55,7 +55,7 @@ }) #ifdef CONFIG_SMP -# define __lock_aligned __section(".data..lock_aligned") +# define __lock_aligned __section(".data..lock_aligned") __aligned(16) #endif #endif /* __PARISC_LDCW_H */