random: Don't use "proxy" headers
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.
Signed-off-by Andy Shevchenko <[email protected]>
--- include/linux/random.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/random.h +4 -1
@@ -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
Quoted 5 lines · Andy Shevchenko
Update header inclusions to follow IWYU (Include What You Use) principle.
Note that
kernel.his discouraged to be included as it's written at the top of that file.
Applied. Thank you.