Skip to content

Commit ea38aa2

Browse files
YueHaibingjlahtine-intel
authored andcommitted
drm/i915: Add missing include file <linux/math64.h>
Fix build error: ./drivers/gpu/drm/i915/selftests/i915_random.h: In function i915_prandom_u32_max_state: ./drivers/gpu/drm/i915/selftests/i915_random.h:48:23: error: implicit declaration of function mul_u32_u32; did you mean mul_u64_u32_div? [-Werror=implicit-function-declaration] return upper_32_bits(mul_u32_u32(prandom_u32_state(state), ep_ro)); Reported-by: Hulk Robot <[email protected]> Fixes: 7ce5b68 ("drm/i915/selftests: Use mul_u32_u32() for 32b x 32b -> 64b result") Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 62bf546) Signed-off-by: Joonas Lahtinen <[email protected]>
1 parent b3a987b commit ea38aa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#ifndef __I915_SELFTESTS_RANDOM_H__
2626
#define __I915_SELFTESTS_RANDOM_H__
2727

28+
#include <linux/math64.h>
2829
#include <linux/random.h>
2930

3031
#include "../i915_selftest.h"

0 commit comments

Comments
 (0)