aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2024-09-30 14:33:15 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2024-10-03 18:19:38 +0200
commitb23eff812a77646df37a5c870bbdcbec79592eb4 (patch)
treea4e37b175300f45a116ad07073d2fc93385975b3
parentdrm/i915/selftests: Include <linux/prandom.h> instead of <linux/random.h> (diff)
downloadlinux-rng-b23eff812a77646df37a5c870bbdcbec79592eb4.tar.xz
linux-rng-b23eff812a77646df37a5c870bbdcbec79592eb4.zip
drm/lib: Include <linux/prandom.h> instead of <linux/random.h>
Substitute the inclusion of <linux/random.h> header with <linux/prandom.h> to allow the removal of legacy inclusion of <linux/prandom.h> from <linux/random.h>. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Maxime Ripard <mripard@kernel.org> Cc: Thomas Zimmermann <tzimmermann@suse.de> Cc: David Airlie <airlied@gmail.com> Cc: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--drivers/gpu/drm/lib/drm_random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/lib/drm_random.h b/drivers/gpu/drm/lib/drm_random.h
index 5543bf0474bc..9f827260a89d 100644
--- a/drivers/gpu/drm/lib/drm_random.h
+++ b/drivers/gpu/drm/lib/drm_random.h
@@ -6,7 +6,7 @@
* be transposed to lib/ at the earliest convenience.
*/
-#include <linux/random.h>
+#include <linux/prandom.h>
#define DRM_RND_STATE_INITIALIZER(seed__) ({ \
struct rnd_state state__; \