Skip to content

Commit 27e0530

Browse files
committed
sched: Always inline is_percpu_thread()
Bugzilla: https://bugzilla.redhat.com/2166660 commit 83d40a6 Author: Peter Zijlstra <peterz@infradead.org> Date: Mon Sep 20 15:31:11 2021 +0200 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 <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: Phil Auld <pauld@redhat.com>
1 parent 21a2d53 commit 27e0530

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
@@ -1778,7 +1778,7 @@ extern struct pid *cad_pid;
17781778
#define tsk_used_math(p) ((p)->flags & PF_USED_MATH)
17791779
#define used_math() tsk_used_math(current)
17801780

1781-
static inline bool is_percpu_thread(void)
1781+
static __always_inline bool is_percpu_thread(void)
17821782
{
17831783
#ifdef CONFIG_SMP
17841784
return (current->flags & PF_NO_SETAFFINITY) &&

0 commit comments

Comments
 (0)