]> Git Repo - J-linux.git/commitdiff
drm: using mul_u32_u32() requires linux/math64.h
authorStephen Rothwell <[email protected]>
Tue, 19 Dec 2023 03:57:34 +0000 (14:57 +1100)
committerVille Syrjälä <[email protected]>
Tue, 19 Dec 2023 13:29:17 +0000 (15:29 +0200)
Some pending include file cleanups produced this error:

In file included from include/linux/kernel.h:27,
                 from drivers/gpu/ipu-v3/ipu-dp.c:7:
include/drm/drm_color_mgmt.h: In function 'drm_color_lut_extract':
include/drm/drm_color_mgmt.h:45:46: error: implicit declaration of function 'mul_u32_u32' [-Werror=implicit-function-declaration]
   45 |                 return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1),
      |                                              ^~~~~~~~~~~

Fixes: c6fbb6bca108 ("drm: Fix color LUT rounding")
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
include/drm/drm_color_mgmt.h

index 54b2b2467bfd7a242f59973e42903b921da88a3f..ed81741036d76677ac9d6542ea4ea212e29aeb4b 100644 (file)
@@ -24,6 +24,7 @@
 #define __DRM_COLOR_MGMT_H__
 
 #include <linux/ctype.h>
+#include <linux/math64.h>
 #include <drm/drm_property.h>
 
 struct drm_crtc;
This page took 0.070317 seconds and 4 git commands to generate.