Skip to content

Commit bb893f0

Browse files
Peter Zijlstragregkh
authored andcommitted
sched: Always inline is_percpu_thread()
[ Upstream commit 83d40a6 ] 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>
1 parent bdae2a0 commit bb893f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/sched.h

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

1592-
static inline bool is_percpu_thread(void)
1592+
static __always_inline bool is_percpu_thread(void)
15931593
{
15941594
#ifdef CONFIG_SMP
15951595
return (current->flags & PF_NO_SETAFFINITY) &&

0 commit comments

Comments
 (0)