From patchwork Tue Mar 25 21:27:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lyude Paul X-Patchwork-Id: 14029528 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B86BC36005 for ; Tue, 25 Mar 2025 21:28:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F12010E5FB; Tue, 25 Mar 2025 21:28:50 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="aUFYLfrb"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id BAA8210E2A7 for ; Tue, 25 Mar 2025 21:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742938127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lMQDXtxbqTS7ziJJiCZIX0LB76TW0s62efGfyV0tZrY=; b=aUFYLfrb0mBOEMKUjEETUJj+EkREsgMrRS5b9oKFxZlp0X87i+ohUQodIldXWYsW+s8C+F J6oLpZ7H3dgKA72h1TlCLrwgXAUmiMdTcn6aDLDuWc898SJ8AYjKH2yQ4l4wEDadsp1Q+J lcaP26Lbs9dXjwkbjoMQBFMHxN7RCMk= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-9-h6ygNYWKM4q_iEEXd15dvQ-1; Tue, 25 Mar 2025 17:28:44 -0400 X-MC-Unique: h6ygNYWKM4q_iEEXd15dvQ-1 X-Mimecast-MFC-AGG-ID: h6ygNYWKM4q_iEEXd15dvQ_1742938122 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6EE1A196D2CF; Tue, 25 Mar 2025 21:28:42 +0000 (UTC) Received: from chopper.lyude.net (unknown [10.22.80.20]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7462919541A5; Tue, 25 Mar 2025 21:28:40 +0000 (UTC) From: Lyude Paul To: Maxime Ripard , Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter Subject: [PATCH 2/2] drm/mode_config: Make drm_mode_config.(max|min)_(width|height) signed Date: Tue, 25 Mar 2025 17:27:05 -0400 Message-ID: <20250325212823.669459-3-lyude@redhat.com> In-Reply-To: <20250325212823.669459-1-lyude@redhat.com> References: <20250325212823.669459-1-lyude@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. Signed-off-by: Lyude Paul Cc: Greg Kroah-Hartman Cc: Maxime Ripard --- 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; const struct drm_mode_config_funcs *funcs; /* output poll support */