Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uros Bizjak and committed by
Jason A. Donenfeld
b23eff81 75caf396

+1 -1
+1 -1
drivers/gpu/drm/lib/drm_random.h
··· 6 6 * be transposed to lib/ at the earliest convenience. 7 7 */ 8 8 9 - #include <linux/random.h> 9 + #include <linux/prandom.h> 10 10 11 11 #define DRM_RND_STATE_INITIALIZER(seed__) ({ \ 12 12 struct rnd_state state__; \