summaryrefslogtreecommitdiff
path: root/kernel/sched/autogroup.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-11-20 12:39:20 +0300
committerIngo Molnar <mingo@kernel.org>2022-02-23 10:22:00 +0300
commitd90a2f160a1cd9a1745896c381afdf8d2812fd6b (patch)
tree53106f7a8235e34fb2bc6bcb6b0c1d2c48e8549a /kernel/sched/autogroup.h
parent95458477f5b2dc436e3aa6aa25c0f84bb83e6195 (diff)
downloadlinux-d90a2f160a1cd9a1745896c381afdf8d2812fd6b.tar.xz
sched/headers: Add header guard to kernel/sched/stats.h and kernel/sched/autogroup.h
Protect against multiple inclusion. Also include "sched.h" in "stat.h", as it relies on it. Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/sched/autogroup.h')
-rw-r--r--kernel/sched/autogroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/autogroup.h b/kernel/sched/autogroup.h
index 90fcbfdd70c3..90d69f2c5eaf 100644
--- a/kernel/sched/autogroup.h
+++ b/kernel/sched/autogroup.h
@@ -1,4 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _KERNEL_SCHED_AUTOGROUP_H
+#define _KERNEL_SCHED_AUTOGROUP_H
+
#ifdef CONFIG_SCHED_AUTOGROUP
struct autogroup {
@@ -59,3 +62,5 @@ static inline int autogroup_path(struct task_group *tg, char *buf, int buflen)
}
#endif /* CONFIG_SCHED_AUTOGROUP */
+
+#endif /* _KERNEL_SCHED_AUTOGROUP_H */