Skip to content

drm/amd/display: fix MIN_I64 overflow on bw_fixed.c

Tales Aparecida amd-gfx 1 version Applied

Status from this message: Applied the series. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2drm/amd/display: fix overflow on MIN_I64 definitiondrivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c+3 -30 replies
2/2drm/amd/display: fix minor codestyle problemsdrivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c+4 -61 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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

Signature · 1 line
2.37.0