]> git.baikalelectronics.ru Git - kernel.git/commit
entry: Fix compile error in dynamic_irqentry_exit_cond_resched()
authorSven Schnelle <svens@linux.ibm.com>
Wed, 30 Mar 2022 08:43:28 +0000 (10:43 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Apr 2022 07:59:36 +0000 (09:59 +0200)
commit5bfb504936593a9f4a5d0e1c54eaca36d85abe2b
treeec154e624d9888ad2f43252c6263fa87bcd38a4b
parent4bce4b8e8ae792acb1e69b03a176cd5422a8fa6c
entry: Fix compile error in dynamic_irqentry_exit_cond_resched()

kernel/entry/common.c: In function ‘dynamic_irqentry_exit_cond_resched’:
kernel/entry/common.c:409:14: error: implicit declaration of function ‘static_key_unlikely’; did you mean ‘static_key_enable’? [-Werror=implicit-function-declaration]
  409 |         if (!static_key_unlikely(&sk_dynamic_irqentry_exit_cond_resched))
      |              ^~~~~~~~~~~~~~~~~~~
      |              static_key_enable

static_key_unlikely() should be static_branch_unlikely().

Fixes: 2083f295e0b16 ("sched/preempt: Add PREEMPT_DYNAMIC using static keys")
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220330084328.1805665-1-svens@linux.ibm.com
kernel/entry/common.c