[PATCH] drm/xe/tests: include linux/prandom.h as well as linux/random.h
Thomas Hellström
thomas.hellstrom at linux.intel.com
Fri Oct 4 13:20:37 UTC 2024
The linux/prandom.h file was previously included from linux/random.h
but starting with commit
38d1a9d296c8 ("random: Do not include <linux/prandom.h> in <linux/random.h>")
That's no longer the case. Since we also use functions from
<linux/random.h>, include both.
Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
---
drivers/gpu/drm/xe/tests/xe_bo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c
index 7d3fd720478b..39cadce0881c 100644
--- a/drivers/gpu/drm/xe/tests/xe_bo.c
+++ b/drivers/gpu/drm/xe/tests/xe_bo.c
@@ -7,6 +7,7 @@
#include <kunit/visibility.h>
#include <linux/iosys-map.h>
+#include <linux/prandom.h>
#include <linux/random.h>
#include <linux/swap.h>
--
2.46.0
More information about the Intel-xe
mailing list