From: Thomas Zimmermann <tzimmermann@suse.de>
To: Lyude Paul <lyude@redhat.com>, Maxime Ripard <mripard@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Subject: Re: [PATCH 2/2] drm/mode_config: Make drm_mode_config.(max|min)_(width|height) signed
Date: Wed, 26 Mar 2025 10:32:25 +0100 [thread overview]
Message-ID: <888333e6-e81c-4186-b543-78fda7e3eb68@suse.de> (raw)
In-Reply-To: <20250325212823.669459-3-lyude@redhat.com>
Hi
Am 25.03.25 um 22:27 schrieb Lyude Paul:
> Similarly, it doesn't really make much sense for us to allow devices to
> specify their minimum/maximum resolution as signed. So, let's fix that as
> well while we're at it.
This commit message only makes sense in the context of the series.
Better remove 'Similarily' and 'as well while we're at it'.
>
> Signed-off-by: Lyude Paul <lyude@redhat.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Maxime Ripard <mripard@kernel.org>
> ---
> include/drm/drm_mode_config.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
> index 271765e2e9f2d..4b8f0370b79bf 100644
> --- a/include/drm/drm_mode_config.h
> +++ b/include/drm/drm_mode_config.h
> @@ -532,8 +532,8 @@ struct drm_mode_config {
> */
> struct list_head privobj_list;
>
> - int min_width, min_height;
> - int max_width, max_height;
> + unsigned int min_width, min_height;
> + unsigned int max_width, max_height;
No problem, I just hope this has no fallout where these fields are being
used.
Best regards
Thomas
> const struct drm_mode_config_funcs *funcs;
>
> /* output poll support */
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
next prev parent reply other threads:[~2025-03-26 9:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 21:27 [PATCH 0/2] drm: Make some resolution info unsigned Lyude Paul
2025-03-25 21:27 ` [PATCH 1/2] drm/edid: Use unsigned int in drm_add_modes_noedid() Lyude Paul
2025-03-26 9:29 ` Thomas Zimmermann
2025-03-26 10:39 ` Jani Nikula
2025-03-26 11:06 ` Miguel Ojeda
2025-03-28 22:27 ` Lyude Paul
2025-03-29 12:04 ` Miguel Ojeda
2025-03-25 21:27 ` [PATCH 2/2] drm/mode_config: Make drm_mode_config.(max|min)_(width|height) signed Lyude Paul
2025-03-26 9:32 ` Thomas Zimmermann [this message]
2025-03-26 9:07 ` [PATCH 0/2] drm: Make some resolution info unsigned Maxime Ripard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=888333e6-e81c-4186-b543-78fda7e3eb68@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lyude@redhat.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®