]> 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)
commit4f3af4319d86e50e12cfe9ed0db1567ceb53af52
tree01a8abc1f566e4a5068042247c1e388cccdf8b9e
parent46057fec6fbadd139a62d1837a947f4b93615b37
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