Skip to content

Commit 75caf39

Browse files
ubizjakzx2c4
authored andcommitted
drm/i915/selftests: 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 <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Rodrigo Vivi <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Acked-by: Jani Nikula <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent fe5d0c8 commit 75caf39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/gpu/drm/i915/selftests/i915_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © 2018 Intel Corporation
55
*/
66

7-
#include <linux/random.h>
7+
#include <linux/prandom.h>
88

99
#include "gem/i915_gem_internal.h"
1010
#include "gem/i915_gem_pm.h"

drivers/gpu/drm/i915/selftests/i915_random.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define __I915_SELFTESTS_RANDOM_H__
2727

2828
#include <linux/math64.h>
29-
#include <linux/random.h>
29+
#include <linux/prandom.h>
3030

3131
#include "../i915_selftest.h"
3232

drivers/gpu/drm/i915/selftests/scatterlist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
#include <linux/prime_numbers.h>
25-
#include <linux/random.h>
25+
#include <linux/prandom.h>
2626

2727
#include "i915_selftest.h"
2828
#include "i915_utils.h"

0 commit comments

Comments
 (0)