[PATCH 1/6] tools/sched_ext/include: Remove dead sdt_task_defs.h guard from common.h

From: Tejun Heo

Date: Sat Mar 07 2026 - 21:45:32 EST


The __has_include guard for sdt_task_defs.h is vestigial — the only
remaining content is the bpf_arena_common.h include which is available
unconditionally. Remove the dead guard.

Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
---
tools/sched_ext/include/scx/common.h | 4 ----
1 file changed, 4 deletions(-)

diff --git a/tools/sched_ext/include/scx/common.h b/tools/sched_ext/include/scx/common.h
index b3c6372bcf81..823251fc4715 100644
--- a/tools/sched_ext/include/scx/common.h
+++ b/tools/sched_ext/include/scx/common.h
@@ -74,10 +74,6 @@ typedef int64_t s64;
#include "compat.h"
#include "enums.h"

-/* not available when building kernel tools/sched_ext */
-#if __has_include(<lib/sdt_task_defs.h>)
#include "bpf_arena_common.h"
-#include <lib/sdt_task_defs.h>
-#endif

#endif /* __SCHED_EXT_COMMON_H */
--
2.53.0