parisc: Show error if wrong 32/64-bit compiler is being used
authorHelge Deller <deller@gmx.de>
Sun, 13 Feb 2022 21:29:25 +0000 (22:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:03 +0000 (12:03 +0100)
commit7a25d8249971d0e7dd212e0ea6685644d9c68caa
tree147cff166e9c36a307a1a853af75eec1a87b90a4
parent9750d45760c8b590efcb86531d1d36ea11fc4dcd
parisc: Show error if wrong 32/64-bit compiler is being used

commit b160628e9ebcdc85d0db9d7f423c26b3c7c179d0 upstream.

It happens quite often that people use the wrong compiler to build the
kernel:

make ARCH=parisc   -> builds the 32-bit kernel
make ARCH=parisc64 -> builds the 64-bit kernel

This patch adds a sanity check which errors out with an instruction how
use the correct ARCH= option.

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