Skip to contentSkip to conversation

sched/deadline: include sched/isolation.h for housekeeping

PATCH New Joseph Salisbury 1 participant 1 message Mar 8 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/deadline: include sched/isolation.h for housekeeping

'deadline.c' uses housekeeping APIs but relies on transitive includes for their declarations.

With stricter include checking, this can fail to build, for example:
error: implicit declaration of function 'housekeeping_enabled'

Include <linux/sched/isolation.h> directly in deadline.c so required housekeeping interfaces are declared at the use site.

Reproducer (without this patch):
make KCFLAGS="-Werror=implicit-function-declaration" \
kernel/sched/deadline.o

This fails with:
error: implicit declaration of function 'housekeeping_cpumask'
error: 'HK_TYPE_DOMAIN' undeclared
error: implicit declaration of function 'housekeeping_enabled'

After applying this patch, the same command builds kernel/sched/deadline.o successfully.

Fixes 318e18ed22e8 ("sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug")
Assisted-by Codex:GPT-5
---
 kernel/sched/deadline.c | 1 +
 1 file changed, 1 insertion(+)
kernel/sched/deadline.c +1 -0
index d08b00429323..75d5263518f5 100644
@@ -17,6 +17,7 @@
  */
 
 #include <linux/cpuset.h>
+#include <linux/sched/isolation.h>
 #include <linux/sched/clock.h>
 #include <uapi/linux/sched/types.h>
 #include "sched.h"
Signature · 1 line
2.47.3