From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEB6B1D8DEA; Tue, 15 Oct 2024 12:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728993724; cv=none; b=rkoi/8BkRaFL8dKpys//hj9/Oeo+MVL9+b82QiVLx6Lgwvkq8TAnkWnTChF8iX2m2hedNXRztbSBVplzFEkWGovJvl8kzI6XAS+bS4mVidgRVGbD0XoM4zdf/PSOTGEljiXOdfO775a5BVQxuxzS6CvbQnMf45aLbqKxslZiEMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728993724; c=relaxed/simple; bh=tLS0EWo79TxCHkgqD0GVprfnTWAtZmq6X4ZvbfzqpKg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=o1fiW/SQNvOCcHonoejOU0gULBCenqz3mVdRsPeWR1b+ri9f33At03mQBnomJdNWTYs2GiEVnV0P54xWmSe+nY4/uiTaO4RXEi6PQQT/H0WnOhCRu7W7f0O3CmKdI691ncVZ7S9Vw+EDJZkVNZsyJ15LQLy76ycgkp0OXKoy/xU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aaQhwd0B; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aaQhwd0B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4DFFC4CEC6; Tue, 15 Oct 2024 12:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728993724; bh=tLS0EWo79TxCHkgqD0GVprfnTWAtZmq6X4ZvbfzqpKg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aaQhwd0BEFJ8Vwd2XRtSr4KaRGoxhyDfHm2nBd2/5pL+JFUtBoHd4B/UGiW31ktHF tYZDLcbUbLa29rXPvHTmL74wm93XAdJk0cjUIJLvKBTrxqA5Qy/6dyvhuIfdLpg2FO Yq+i2s6MUYupuLbDc/kYJT5B1quA9FjAABW6hgx8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Thomas Zimmermann , Lukasz Spintzyk , Deepak Rawat , Daniel Vetter , Thomas Hellstrom , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , dri-devel@lists.freedesktop.org, Dmitry Baryshkov Subject: [PATCH 5.15 497/691] drm: Consistently use struct drm_mode_rect for FB_DAMAGE_CLIPS Date: Tue, 15 Oct 2024 13:27:25 +0200 Message-ID: <20241015112500.069386914@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241015112440.309539031@linuxfoundation.org> References: <20241015112440.309539031@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Zimmermann commit 8b0d2f61545545ab5eef923ed6e59fc3be2385e0 upstream. FB_DAMAGE_CLIPS is a plane property for damage handling. Its UAPI should only use UAPI types. Hence replace struct drm_rect with struct drm_mode_rect in drm_atomic_plane_set_property(). Both types are identical in practice, so there's no change in behavior. Reported-by: Ville Syrjälä Closes: https://lore.kernel.org/dri-devel/Zu1Ke1TuThbtz15E@intel.com/ Signed-off-by: Thomas Zimmermann Fixes: d3b21767821e ("drm: Add a new plane property to send damage during plane update") Cc: Lukasz Spintzyk Cc: Deepak Rawat Cc: Daniel Vetter Cc: Thomas Hellstrom Cc: David Airlie Cc: Simona Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org Cc: # v5.0+ Reviewed-by: Dmitry Baryshkov Link: https://patchwork.freedesktop.org/patch/msgid/20240923075841.16231-1-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/drm_atomic_uapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @@ -603,7 +603,7 @@ static int drm_atomic_plane_set_property &state->fb_damage_clips, val, -1, - sizeof(struct drm_rect), + sizeof(struct drm_mode_rect), &replaced); return ret; } else if (property == plane->scaling_filter_property) {