OSDN Git Service

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)
commitb160628e9ebcdc85d0db9d7f423c26b3c7c179d0
tree01a8abc1f566e4a5068042247c1e388cccdf8b9e
parent18a1d5e1945385d9b5adc3fe11427ce4a9d2826e
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