From: Cruise Hung Date: Mon, 6 Jun 2022 14:12:39 +0000 (+0800) Subject: drm/amd/display: Remove compiler warning X-Git-Tag: v6.6.17~6802^2~17^2~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d763a9955f0fbf2681a2f1fa87c416056bd0c89;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/display: Remove compiler warning Tested-by: Daniel Wheeler Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off-by: Cruise Hung Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/include/fixed31_32.h b/drivers/gpu/drm/amd/display/include/fixed31_32.h index 22053d7ea6ce..ece97ae0e826 100644 --- a/drivers/gpu/drm/amd/display/include/fixed31_32.h +++ b/drivers/gpu/drm/amd/display/include/fixed31_32.h @@ -322,7 +322,7 @@ struct fixed31_32 dc_fixpt_sqr(struct fixed31_32 arg); */ static inline struct fixed31_32 dc_fixpt_div_int(struct fixed31_32 arg1, long long arg2) { - return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int(arg2).value); + return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int((int)arg2).value); } /*