Skip to content

Commit 0a70045

Browse files
svens-s390Peter Zijlstra
authored andcommitted
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: 99cf983 ("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
1 parent 386ef21 commit 0a70045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/entry/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ DEFINE_STATIC_CALL(irqentry_exit_cond_resched, raw_irqentry_exit_cond_resched);
392392
DEFINE_STATIC_KEY_TRUE(sk_dynamic_irqentry_exit_cond_resched);
393393
void dynamic_irqentry_exit_cond_resched(void)
394394
{
395-
if (!static_key_unlikely(&sk_dynamic_irqentry_exit_cond_resched))
395+
if (!static_branch_unlikely(&sk_dynamic_irqentry_exit_cond_resched))
396396
return;
397397
raw_irqentry_exit_cond_resched();
398398
}

0 commit comments

Comments
 (0)