Skip to content

Commit 933a2a3

Browse files
sfrothwellvsyrjala
authored andcommitted
drm: using mul_u32_u32() requires linux/math64.h
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: c6fbb6b ("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]
1 parent 6914968 commit 933a2a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/drm/drm_color_mgmt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#define __DRM_COLOR_MGMT_H__
2525

2626
#include <linux/ctype.h>
27+
#include <linux/math64.h>
2728
#include <drm/drm_property.h>
2829

2930
struct drm_crtc;

0 commit comments

Comments
 (0)