]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Enable -mlong-calls gcc option by default when !CONFIG_MODULES
authorHelge Deller <deller@gmx.de>
Tue, 26 Jan 2021 19:16:21 +0000 (20:16 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 26 Jan 2021 19:16:21 +0000 (20:16 +0100)
commita70942fb9f6f532394f8cef39868ec16c12f2dfa
treeda600cafe83d51b41ea5d26174a816fc3dc7fa21
parent8d99e0d9b204282023783c5a387fe873162987c3
parisc: Enable -mlong-calls gcc option by default when !CONFIG_MODULES

When building a kernel without module support, the CONFIG_MLONGCALL option
needs to be enabled in order to reach symbols which are outside of a 22-bit
branch.

This patch changes the autodetection in the Kconfig script to always enable
CONFIG_MLONGCALL when modules are disabled and uses a far call to
preempt_schedule_irq() in intr_do_preempt() to reach the symbol in all cases.

Signed-off-by: Helge Deller <deller@gmx.de>
Reported-by: kernel test robot <lkp@intel.com>
Cc: stable@vger.kernel.org # v5.6+
arch/parisc/Kconfig
arch/parisc/kernel/entry.S