[tip: sched/core] sched/headers: Add header guard to <linux/sched/deadline.h>

tip-bot2 for Ingo Molnar posted 1 patch 2 years, 4 months ago
include/linux/sched/deadline.h | 4 ++++
1 file changed, 4 insertions(+)
[tip: sched/core] sched/headers: Add header guard to <linux/sched/deadline.h>
Posted by tip-bot2 for Ingo Molnar 2 years, 4 months ago
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@kernel.org>
AuthorDate:    Sun, 06 Jun 2021 13:27:15 +02:00
Committer:     Ingo Molnar <mingo@kernel.org>
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@kernel.org>
---
 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 */