[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250331222556.454334-1-lyude@redhat.com>
Date: Mon, 31 Mar 2025 18:23:53 -0400
From: Lyude Paul <lyude@...hat.com>
To: Maxime Ripard <mripard@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
Thomas Zimmermann <tzimmermann@...e.de>
Cc: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>,
rust-for-linux@...r.kernel.org (open list:RUST:Keyword:\b(?i:rust)\b)
Subject: [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
--
2.48.1
Powered by blists - more mailing lists