]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched/headers: Add header guard to <linux/sched/deadline.h>
authorIngo Molnar <mingo@kernel.org>
Sun, 6 Jun 2021 11:27:15 +0000 (13:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Sep 2023 09:22:35 +0000 (11:22 +0200)
It's the only non-trivial header in include/linux/sched/ missing a header guard.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched/deadline.h

index 7c83d4d5a9719b1d7cf4da3f9e925362911ee639..df3aca89d4f5040d3809474578cfe12c953858eb 100644 (file)
@@ -1,4 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_SCHED_DEADLINE_H
+#define _LINUX_SCHED_DEADLINE_H
 
 /*
  * SCHED_DEADLINE tasks has negative priorities, reflecting
@@ -34,3 +36,5 @@ extern void dl_add_task_root_domain(struct task_struct *p);
 extern void dl_clear_root_domain(struct root_domain *rd);
 
 #endif /* CONFIG_SMP */
+
+#endif /* _LINUX_SCHED_DEADLINE_H */