[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240215093646.3265823-5-max.kellermann@ionos.com>
Date: Thu, 15 Feb 2024 10:36:42 +0100
From: Max Kellermann <max.kellermann@...os.com>
To: linux-kernel@...r.kernel.org
Cc: Max Kellermann <max.kellermann@...os.com>
Subject: [PATCH v1 4/8] linux/random.h: reduce dependencies on linux/kernel.h
This header doesn't need kernel.h at all, but if we remove it, the
build breaks because kernel.h includes limits.h and log2.h, which
random.h needs.
list.h is also removed because it is not needed at all.
Signed-off-by: Max Kellermann <max.kellermann@...os.com>
---
include/linux/random.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/random.h b/include/linux/random.h
index b0a940af4fff..3183025ddda9 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -4,8 +4,8 @@
#define _LINUX_RANDOM_H
#include <linux/bug.h>
-#include <linux/kernel.h>
-#include <linux/list.h>
+#include <linux/limits.h> // for U32_MAX
+#include <linux/log2.h> // for is_power_of_2()
#include <uapi/linux/random.h>
--
2.39.2
Powered by blists - more mailing lists