]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/orc: Make the is_callthunk() definition depend on CONFIG_BPF_JIT=y
authorIngo Molnar <mingo@kernel.org>
Fri, 9 Jun 2023 09:04:53 +0000 (11:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Jun 2023 09:09:04 +0000 (11:09 +0200)
commit301cf77e21317b3465c5e2bb0188df24bbf1c2e2
treebe1ad451ac1c4143e2632bb56d4df38cd298d881
parentb4c96ef0add5b701eb37be9830a98610e1d9b4a3
x86/orc: Make the is_callthunk() definition depend on CONFIG_BPF_JIT=y

Recent commit:

  020126239b8f Revert "x86/orc: Make it callthunk aware"

Made the only user of is_callthunk() depend on CONFIG_BPF_JIT=y, while
the definition of the helper function is unconditional.

Move is_callthunk() inside the #ifdef block.

Addresses this build failure:

   arch/x86/kernel/callthunks.c:296:13: error: ‘is_callthunk’ defined but not used [-Werror=unused-function]

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
arch/x86/kernel/callthunks.c