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:51:15 +0000 (08:51 +0100)
commit41d7852a0a3951b7248299b0e32f05d056eb6cac
tree32ceb4c9c0404be329e5d8bc08c159f1359d68db
parentc7c78a4aa60ad51c64a269c660a409654b6eabee
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