[PATCH 1/3] kbuild: make rq-offsets-file an explicit preparation dependency
From: Vincent Mailhol
Date: Wed Nov 11 2026 - 08:42:21 EST
The generated rq-offsets.h header is included by linux/sched.h and must
exist before compiling ordinary objects. Currently that header is
prepared indirectly through the missing-syscalls target.
Make prepare depend directly on rq-offsets-file. Because rq-offsets-file
depends on offsets-file, that other dependency can be removed.
Keep the rq-offsets-file dependency in missing-syscalls so that the
check can still run independently.
Signed-off-by: Vincent Mailhol <mailhol@xxxxxxxxxx>
---
Kbuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Kbuild b/Kbuild
index a6a0192dea08..5a65be2d51b0 100644
--- a/Kbuild
+++ b/Kbuild
@@ -87,7 +87,7 @@ $(atomic-checks): $(obj)/.checked-%: include/linux/atomic/% FORCE
# A phony target that depends on all the preparation targets
PHONY += prepare
-prepare: $(offsets-file) missing-syscalls $(atomic-checks)
+prepare: $(rq-offsets-file) missing-syscalls $(atomic-checks)
@:
# Ordinary directory descending
--
2.56.1