[PATCH 0/2] drm/amd/display: fix MIN_I64 overflow on bw_fixed.c

Tales Aparecida tales.aparecida at gmail.com
Thu Aug 11 20:43:25 UTC 2022


Hi,

This series fixes an error accused by GCC and some checkpatch warnings.

The first patch of this series fixes an error reported and fixed by
David Gow (thanks!) at [1], where the macro MIN_I64 was used for the
first time and warned about an integer overflow.
The fix uses a similar syntax from include/vdso/limits.h

To cause the error you can either apply that series or, for example,
define a global variable:

    int64_t min_i64 = MIN_I64;

The second patch fix lesser warnings in the same file.

Thanks for the review!

[1] https://lore.kernel.org/amd-gfx/CABVgOSmkeybnR2sGEEgn1Cb0cR2eKxW=vhXkHjC5xCuhaxsqVg@mail.gmail.com/

David Gow (1):
  drm/amd/display: fix overflow on MIN_I64 definition

Tales Aparecida (1):
  drm/amd/display: fix minor codestyle problems

 .../gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c    | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)


base-commit: 1a60172c97fd2b51151cf17483f372bb61246c0b
-- 
2.37.0



More information about the amd-gfx mailing list