From: Peter Zijlstra Date: Mon, 20 Sep 2021 13:31:11 +0000 (+0200) Subject: sched: Always inline is_percpu_thread() X-Git-Tag: v5.15~138^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83d40a61046f73103b4e5d8f1310261487ff63b0;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20210928084218.063371959@infradead.org --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 39039ce..c1a927d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1720,7 +1720,7 @@ extern struct pid *cad_pid; #define tsk_used_math(p) ((p)->flags & PF_USED_MATH) #define used_math() tsk_used_math(current) -static inline bool is_percpu_thread(void) +static __always_inline bool is_percpu_thread(void) { #ifdef CONFIG_SMP return (current->flags & PF_NO_SETAFFINITY) &&