[tip: sched/core] sched/headers: Add header guard to <linux/sched/deadline.h>
From: tip-bot2 for Ingo Molnar
Date: Thu Sep 21 2023 - 17:14:31 EST
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 3ba78da711940ce07c39c4cdd1f4ad284067a42d
Gitweb: https://git.kernel.org/tip/3ba78da711940ce07c39c4cdd1f4ad284067a42d
Author: Ingo Molnar <mingo@xxxxxxxxxx>
AuthorDate: Sun, 06 Jun 2021 13:27:15 +02:00
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitterDate: Thu, 21 Sep 2023 11:22:35 +02:00
sched/headers: Add header guard to <linux/sched/deadline.h>
It's the only non-trivial header in include/linux/sched/ missing a header guard.
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
include/linux/sched/deadline.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/sched/deadline.h b/include/linux/sched/deadline.h
index 7c83d4d..df3aca8 100644
--- a/include/linux/sched/deadline.h
+++ b/include/linux/sched/deadline.h
@@ -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 */