parisc: Use natural CPU alignment for bug_table
authorHelge Deller <deller@gmx.de>
Mon, 20 Nov 2023 22:30:49 +0000 (23:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:19 +0000 (08:52 +0100)
commitd68cafc2357d8c229150246984b521b901e17384
tree31dba7342393a43809d92048b7d46e3cc25b3391
parentb8ee167df9e7d3f510908bfaf85333c1f8b34102
parisc: Use natural CPU alignment for bug_table

commit fe76a1349f235969381832c83d703bc911021eb6 upstream.

Make sure that the __bug_table section gets 32- or 64-bit aligned,
depending if a 32- or 64-bit kernel is being built.
Mark it non-writeable and use .blockz instead of the .org assembler
directive to pad the struct.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v6.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/bug.h