drm/amd/display: Remove compiler warning
authorCruise Hung <Cruise.Hung@amd.com>
Mon, 6 Jun 2022 14:12:39 +0000 (22:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:22 +0000 (18:17 -0400)
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Cruise Hung <Cruise.Hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/include/fixed31_32.h

index 22053d7..ece97ae 100644 (file)
@@ -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);
 }
 
 /*