drm/amd/display: fix a 32 bit shift meant to be 64 warning
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Mon, 23 Apr 2018 18:39:23 +0000 (14:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 May 2018 21:08:24 +0000 (16:08 -0500)
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/include/fixed31_32.h

index bd8a304..76f64e9 100644 (file)
@@ -209,7 +209,7 @@ static inline struct fixed31_32 dc_fixpt_clamp(
 static inline struct fixed31_32 dc_fixpt_shl(struct fixed31_32 arg, unsigned char shift)
 {
        ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) ||
-               ((arg.value < 0) && (arg.value >= (LLONG_MIN / (1 << shift)))));
+               ((arg.value < 0) && (arg.value >= (LLONG_MIN / (1LL << shift)))));
 
        arg.value = arg.value << shift;