mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] random: Don't use "proxy" headers
@ 2026-01-22 10:35 Andy Shevchenko
  2026-01-22 23:33 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2026-01-22 10:35 UTC (permalink / raw)
  To: Andy Shevchenko, Eric Biggers, linux-kernel
  Cc: Theodore Ts'o, Jason A. Donenfeld

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 <andriy.shevchenko@linux.intel.com>
---
 include/linux/random.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/linux/random.h b/include/linux/random.h
index 8a8064dc3970..17b1273cad1b 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -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>
 
-- 
2.50.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1 1/1] random: Don't use "proxy" headers
  2026-01-22 10:35 [PATCH v1 1/1] random: Don't use "proxy" headers Andy Shevchenko
@ 2026-01-22 23:33 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2026-01-22 23:33 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Eric Biggers, linux-kernel, Theodore Ts'o

On Thu, Jan 22, 2026 at 11:35:41AM +0100, Andy Shevchenko wrote:
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-22 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-22 10:35 [PATCH v1 1/1] random: Don't use "proxy" headers Andy Shevchenko
2026-01-22 23:33 ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome