Skip to content

Commit 83d40a6

Browse files
author
Peter Zijlstra
committed
sched: Always inline is_percpu_thread()
vmlinux.o: warning: objtool: check_preemption_disabled()+0x81: call to is_percpu_thread() leaves .noinstr.text section Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 7030661 commit 83d40a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ extern struct pid *cad_pid;
17201720
#define tsk_used_math(p) ((p)->flags & PF_USED_MATH)
17211721
#define used_math() tsk_used_math(current)
17221722

1723-
static inline bool is_percpu_thread(void)
1723+
static __always_inline bool is_percpu_thread(void)
17241724
{
17251725
#ifdef CONFIG_SMP
17261726
return (current->flags & PF_NO_SETAFFINITY) &&

0 commit comments

Comments
 (0)