Skip to content

drm: Make some resolution info unsigned

Lyude Paul dri-devel lkml rust-for-linux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/edid: Use unsigned int in drm_add_modes_noedid()drivers/gpu/drm/drm_edid.c include/drm/drm_edid.h+3 -90 replies
2/2drm/mode_config: Make drm_mode_config.(max|min)_(width|height) unsignedinclude/drm/drm_mode_config.h+2 -20 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMaxime RipardThomas Zimmermann
SeriesR-b
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] drm: Make some resolution info unsigned

During the review of some of my patches for KMS bindings in Rust, it was pointed out we have some areas of DRM that are storing resolutions as signed integers when it doesn't really make sense. Since Rust has arithematic overflow checking by default in the kernel, let's change these to unsigned so that we can take advantage of that.

Lyude Paul (2):
drm/edid: Use unsigned int in drm_add_modes_noedid() drm/mode_config: Make drm_mode_config.(max|min)_(width|height)
unsigned

 drivers/gpu/drm/drm_edid.c    | 10 ++--------
 include/drm/drm_edid.h        |  2 +-
 include/drm/drm_mode_config.h |  4 ++--
 3 files changed, 5 insertions(+), 11 deletions(-)

base-commit: cf05922d63e2ae6a9b1b52ff5236a44c3b29f78c

Signature · 1 line
2.48.1