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/pelt.h | |
| parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) | |
| download | lwn-3d7e10188ae0b68dadd60f611ca81ecf9d991f77.tar.gz lwn-3d7e10188ae0b68dadd60f611ca81ecf9d991f77.zip | |
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/pelt.h')
| -rw-r--r-- | kernel/sched/pelt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/sched/pelt.h b/kernel/sched/pelt.h index f4f6a0875c66..19592077452e 100644 --- a/kernel/sched/pelt.h +++ b/kernel/sched/pelt.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef _KERNEL_SCHED_PELT_H +#define _KERNEL_SCHED_PELT_H +#include "sched.h" + #ifdef CONFIG_SMP #include "sched-pelt.h" @@ -233,4 +238,4 @@ update_idle_rq_clock_pelt(struct rq *rq) { } static inline void update_idle_cfs_rq_clock_pelt(struct cfs_rq *cfs_rq) { } #endif - +#endif /* _KERNEL_SCHED_PELT_H */ |
