From: Cruise Hung Date: Mon, 6 Jun 2022 14:12:39 +0000 (+0800) Subject: drm/amd/display: Remove compiler warning X-Git-Tag: v6.0-rc1~138^2~16^2~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d763a9955f0fbf2681a2f1fa87c416056bd0c89;p=thirdparty%2Fkernel%2Flinux.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 22053d7ea6ced..ece97ae0e826c 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); } /*