summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-09-20 15:31:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-17 10:43:33 +0200
commitbb893f075431e97dd72cde0721957a73d26578a8 (patch)
tree306b4065d4d852d74636d889249d490931dc372e
parentbdae2a08343613782be6c5be97b6c3a1ebccbfff (diff)
downloadlinux-stable-bb893f075431e97dd72cde0721957a73d26578a8.tar.gz
linux-stable-bb893f075431e97dd72cde0721957a73d26578a8.tar.bz2
linux-stable-bb893f075431e97dd72cde0721957a73d26578a8.zip
sched: Always inline is_percpu_thread()
[ Upstream commit 83d40a61046f73103b4e5d8f1310261487ff63b0 ] vmlinux.o: warning: objtool: check_preemption_disabled()+0x81: call to is_percpu_thread() leaves .noinstr.text section Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20210928084218.063371959@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 29c7ccd5ae42..b85b26d9ccef 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1589,7 +1589,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) &&