diff options
author | Peter Zijlstra <peterz@infradead.org> | 2025-05-23 18:26:21 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2025-06-11 11:20:53 +0200 |
commit | 3d7e10188ae0b68dadd60f611ca81ecf9d991f77 (patch) | |
tree | 8b048d7cf85bdda65a1033d056c070f673b54788 /kernel/sched/debug.c | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
sched: Make clangd usable
Due to the weird Makefile setup of sched the various files do not
compile as stand alone units. The new generation of editors are trying
to do just this -- mostly to offer fancy things like completions but
also better syntax highlighting and code navigation.
Specifically, I've been playing around with neovim and clangd.
Setting up clangd on the kernel source is a giant pain in the arse
(this really should be improved), but once you do manage, you run into
dumb stuff like the above.
Fix up the scheduler files to at least pretend to work.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lkml.kernel.org/r/20250523164348.GN39944@noisy.programming.kicks-ass.net
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r-- | kernel/sched/debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 9d71baf08075..b384124d89d3 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -6,6 +6,9 @@ * * Copyright(C) 2007, Red Hat, Inc., Ingo Molnar */ +#include <linux/debugfs.h> +#include <linux/nmi.h> +#include "sched.h" /* * This allows printing both to /sys/kernel/debug/sched/debug and |