Skip to content

Commit b28fc0d

Browse files
committed
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 <deller@gmx.de> Cc: stable@vger.kernel.org # v6.0+
1 parent 07eecff commit b28fc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/include/asm/ldcw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
})
5656

5757
#ifdef CONFIG_SMP
58-
# define __lock_aligned __section(".data..lock_aligned")
58+
# define __lock_aligned __section(".data..lock_aligned") __aligned(16)
5959
#endif
6060

6161
#endif /* __PARISC_LDCW_H */

0 commit comments

Comments
 (0)