Skip to content

Commit 0cbdc00

Browse files
author
Herton R. Krzesinski
committed
Merge: sched: Always inline is_percpu_thread()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2003 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> Approved-by: Chris White <chwhite@redhat.com> Approved-by: Valentin Schneider <vschneid@redhat.com> Approved-by: Jerry Snitselaar <jsnitsel@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 30387cf + 27e0530 commit 0cbdc00

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)