]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerHelge Deller <deller@gmx.de>
Sun, 13 Feb 2022 21:45:53 +0000 (22:45 +0100)
commita9ea59c4c6d1a6a1ed34569220763d9638b5785e
tree01a8abc1f566e4a5068042247c1e388cccdf8b9e
parent10af69fcacc30f01b7633f8b48d378ac2fbbbbe1
parisc: Show error if wrong 32/64-bit compiler is being used

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+
arch/parisc/include/asm/bitops.h