Skip to contentSkip to conversation

kernel.h: Include a note to discourage people from including it in headers

PATCH Applied Andy Shevchenko 1 participant 1 message Dec 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel.h: Include a note to discourage people from including it in headers

Include a note at the top to discourage people from including it in headers.

---
 include/linux/kernel.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/linux/kernel.h +9 -0
index ca9ba14f74a1..e18613ba4f27 100644
@@ -1,4 +1,13 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * NOTE:
+ *
+ * This header has combined a lot of unrelated to each other stuff.
+ * The process of splitting its content is in progress while keeping
+ * backward compatibility. That's why it's highly recommended NOT to
+ * include this header inside another header file, especially under
+ * generic or architectural include/ directory.
+ */
 #ifndef _LINUX_KERNEL_H
 #define _LINUX_KERNEL_H
 
Signature · 1 line
2.33.0