History

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.

Andy Shevchenko committed 4 years ago

Commit 40cbf091 parent 22c03391 file · +9 −0Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/kernel.h+9−0
@@ -1,4 +1,13 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2+/*
3+ * NOTE:
4+ *
5+ * This header has combined a lot of unrelated to each other stuff.
6+ * The process of splitting its content is in progress while keeping
7+ * backward compatibility. That's why it's highly recommended NOT to
8+ * include this header inside another header file, especially under
9+ * generic or architectural include/ directory.
10+ */
211 #ifndef _LINUX_KERNEL_H
312 #define _LINUX_KERNEL_H
413

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t