All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] drm/i915: Add missing include file <linux/math64.h>
@ 2020-01-07 13:50 ` YueHaibing
  0 siblings, 0 replies; 12+ messages in thread
From: YueHaibing @ 2020-01-07 13:50 UTC (permalink / raw)
  To: jani.nikula, joonas.lahtinen, rodrigo.vivi, airlied, daniel,
	ville.syrjala, chris, tvrtko.ursulin, yuehaibing, matthew.auld
  Cc: intel-gfx, dri-devel, linux-kernel

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 <hulkci@huawei.com>
Fixes: 7ce5b6850b47 ("drm/i915/selftests: Use mul_u32_u32() for 32b x 32b -> 64b result")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/gpu/drm/i915/selftests/i915_random.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/selftests/i915_random.h b/drivers/gpu/drm/i915/selftests/i915_random.h
index 35cc69a..f650cfb 100644
--- a/drivers/gpu/drm/i915/selftests/i915_random.h
+++ b/drivers/gpu/drm/i915/selftests/i915_random.h
@@ -26,6 +26,7 @@
 #define __I915_SELFTESTS_RANDOM_H__
 
 #include <linux/random.h>
+#include <linux/math64.h>
 
 #include "../i915_selftest.h"
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-01-08  8:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 13:50 [PATCH -next] drm/i915: Add missing include file <linux/math64.h> YueHaibing
2020-01-07 13:50 ` [Intel-gfx] " YueHaibing
2020-01-07 13:50 ` YueHaibing
2020-01-07 13:53 ` Chris Wilson
2020-01-07 13:53   ` [Intel-gfx] " Chris Wilson
2020-01-07 13:53   ` Chris Wilson
2020-01-07 14:02 ` Chris Wilson
2020-01-07 14:02   ` [Intel-gfx] " Chris Wilson
2020-01-07 14:02   ` Chris Wilson
2020-01-07 17:33 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2020-01-07 18:46 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-01-08  1:55 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.