From: Peter Zijlstra <peterz@infradead.org>
To: paulmck@kernel.org, tglx@linutronix.de, sfr@canb.auug.org.au
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org
Subject: [PATCH 3/3] sched: Always inline is_percpu_thread()
Date: Tue, 28 Sep 2021 10:40:23 +0200 [thread overview]
Message-ID: <20210928084218.063371959@infradead.org> (raw)
In-Reply-To: 20210928084020.819856223@infradead.org
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>
---
include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1730,7 +1730,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) &&
next prev parent reply other threads:[~2021-09-28 8:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 8:40 [PATCH 0/3] rcu,sched: noinstr fixes Peter Zijlstra
2021-09-28 8:40 ` [PATCH 1/3] rcu: Always inline rcu_dynticks_task*_{enter,exit}() Peter Zijlstra
2021-09-28 22:35 ` Thomas Gleixner
2021-09-28 23:03 ` Paul E. McKenney
2021-09-28 8:40 ` [PATCH 2/3] rcu: Fix rcu_dynticks_curr_cpu_in_eqs() vs noinstr Peter Zijlstra
2021-09-28 22:35 ` Thomas Gleixner
2021-09-28 8:40 ` Peter Zijlstra [this message]
2021-09-28 22:36 ` [PATCH 3/3] sched: Always inline is_percpu_thread() Thomas Gleixner
2021-10-01 12:10 ` [tip: sched/urgent] " tip-bot2 for Peter Zijlstra
2021-09-28 18:15 ` [PATCH 0/3] rcu,sched: noinstr fixes Paul E. McKenney
2021-09-29 8:39 ` Peter Zijlstra
2021-09-29 15:29 ` Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210928084218.063371959@infradead.org \
--to=peterz@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox