From: Menglong Dong <menglong8.dong@gmail.com>
To: peterz@infradead.org, ast@kernel.org
Cc: mingo@redhat.com, paulmck@kernel.org, juri.lelli@redhat.com,
vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
vschneid@redhat.com, daniel@iogearbox.net,
john.fastabend@gmail.com, andrii@kernel.org,
martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org,
yonghong.song@linux.dev, kpsingh@kernel.org, sdf@fomichev.me,
haoluo@google.com, jolsa@kernel.org, tzimmermann@suse.de,
simona.vetter@ffwll.ch, jani.nikula@intel.com,
linux-kernel@vger.kernel.org, bpf@vger.kernel.org
Subject: [PATCH v5 2/4] rcu: replace preempt.h with sched.h in include/linux/rcupdate.h
Date: Wed, 17 Sep 2025 14:09:14 +0800 [thread overview]
Message-ID: <20250917060916.462278-3-dongml2@chinatelecom.cn> (raw)
In-Reply-To: <20250917060916.462278-1-dongml2@chinatelecom.cn>
In the next commit, we will move the definition of migrate_enable() and
migrate_disable() to linux/sched.h. However,
migrate_enable/migrate_disable will be used in commit
1b93c03fb319 ("rcu: add rcu_read_lock_dont_migrate()") in bpf-next tree.
In order to fix potential compiling error, replace linux/preempt.h with
linux/sched.h in include/linux/rcupdate.h.
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
---
include/linux/rcupdate.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index 120536f4c6eb..8f346c847ee5 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -24,7 +24,7 @@
#include <linux/compiler.h>
#include <linux/atomic.h>
#include <linux/irqflags.h>
-#include <linux/preempt.h>
+#include <linux/sched.h>
#include <linux/bottom_half.h>
#include <linux/lockdep.h>
#include <linux/cleanup.h>
--
2.51.0
next prev parent reply other threads:[~2025-09-17 6:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-17 6:09 [PATCH v5 0/4] sched: make migrate_enable/migrate_disable inline Menglong Dong
2025-09-17 6:09 ` [PATCH v5 1/4] arch: add the macro COMPILE_OFFSETS to all the asm-offsets.c Menglong Dong
2025-09-25 8:01 ` [tip: sched/core] arch: Add " tip-bot2 for Menglong Dong
2025-09-17 6:09 ` Menglong Dong [this message]
2025-09-18 9:47 ` [PATCH v5 2/4] rcu: replace preempt.h with sched.h in include/linux/rcupdate.h Peter Zijlstra
2025-09-25 8:01 ` [tip: sched/core] rcu: Replace " tip-bot2 for Menglong Dong
2025-09-17 6:09 ` [PATCH v5 3/4] sched: make migrate_enable/migrate_disable inline Menglong Dong
2025-09-25 8:01 ` [tip: sched/core] sched: Make migrate_{en,dis}able() inline tip-bot2 for Menglong Dong
2025-09-17 6:09 ` [PATCH v5 4/4] sched: fix some typos in include/linux/preempt.h Menglong Dong
2025-09-25 8:01 ` [tip: sched/core] sched: Fix " tip-bot2 for Menglong Dong
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=20250917060916.462278-3-dongml2@chinatelecom.cn \
--to=menglong8.dong@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=bsegall@google.com \
--cc=daniel@iogearbox.net \
--cc=dietmar.eggemann@arm.com \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=jani.nikula@intel.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=juri.lelli@redhat.com \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=sdf@fomichev.me \
--cc=simona.vetter@ffwll.ch \
--cc=song@kernel.org \
--cc=tzimmermann@suse.de \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
--cc=yonghong.song@linux.dev \
/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
all inboxes | Powered by JetHome®