projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7030661
)
sched: Always inline is_percpu_thread()
author
Peter Zijlstra
<peterz@infradead.org>
Mon, 20 Sep 2021 13:31:11 +0000
(15:31 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Fri, 1 Oct 2021 11:57:57 +0000
(13:57 +0200)
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
include/linux/sched.h
patch
|
blob
|
history
diff --git
a/include/linux/sched.h
b/include/linux/sched.h
index 39039ce8ac4c1774a8c1aca1d0d7bc5eb6e7485f..c1a927ddec646c60d5d22b212852116eecb08327 100644
(file)
--- 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) &&