[v3,29/35] linux/random.h: reduce dependencies on linux/kernel.h

Message ID 20240211123000.3359365-30-max.kellermann@ionos.com
State New
Headers
Series Fast kernel headers: reduce header dependencies |

Commit Message

Max Kellermann Feb. 11, 2024, 12:29 p.m. UTC
  Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
 include/linux/random.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/include/linux/random.h b/include/linux/random.h
index 70e5250f3bc4..3183025ddda9 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -4,7 +4,8 @@ 
 #define _LINUX_RANDOM_H
 
 #include <linux/bug.h>
-#include <linux/kernel.h>
+#include <linux/limits.h> // for U32_MAX
+#include <linux/log2.h> // for is_power_of_2()
 
 #include <uapi/linux/random.h>