Skip to contentSkip to conversation

random: Don't use "proxy" headers

PATCH Applied Andy Shevchenko 2 participants 2 messages Jan 22 Random number driver

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 random: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use) principle.

Note that kernel.h is discouraged to be included as it's written at the top of that file.

---
 include/linux/random.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/random.h +4 -1
index 8a8064dc3970..17b1273cad1b 100644
@@ -4,8 +4,11 @@
 #define _LINUX_RANDOM_H
 
 #include <linux/bug.h>
-#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/limits.h>
 #include <linux/list.h>
+#include <linux/log2.h>
+#include <linux/types.h>
 
 #include <uapi/linux/random.h>
 
Signature · 1 line
2.50.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Andy Shevchenko

Update header inclusions to follow IWYU (Include What You Use) principle.

Note that kernel.h is discouraged to be included as it's written at the top of that file.

Applied. Thank you.