Skip to content

Commit

Permalink
parisc: Mark lock_aligned variables 16-byte aligned on SMP
Browse files Browse the repository at this point in the history
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+
  • Loading branch information
Helge Deller committed Nov 25, 2023
1 parent 07eecff commit b28fc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/ldcw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit b28fc0d

Please sign in to comment.