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 739B71AC450; Mon, 14 Oct 2024 15:21:25 +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=1728919285; cv=none; b=P6+oxuIwh2j29/Gykz3FpPN2uMwD6RUFJOn97UyGLYn6Ebcr0YYUK4s293e7ldAWnYRY9JIqr6WFPJ9zLTAGa/QpBOYhKic7IRcYOrF0VYjIbUBYx7PVBbtAmamAMqrJ8Pqhe2utFXYArndEjSqEx0LqPEOqPVQVAT1+Ne81oUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728919285; c=relaxed/simple; bh=a6GSY4JvErJWIeGzLSaOlcL8U+/dQkReuZxcjejkaP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=u7GQbBcMCHjgqkpsauqOnXM6oT+6CWqhBv+6nXM3RAaVEW4svfDJIJcLqw6KERxsFWRJ5L/5azLFbXyrccnZpgubAOpTsN9jDcDcsdawBARG3K+I0ZRUF2oWWxPV/PvMfa/VrKmOJytTIbd8jmU0hQdIKrsuOrhiH7Ov3DhEDaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MKkavV6A; 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="MKkavV6A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE977C4CEC7; Mon, 14 Oct 2024 15:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728919285; bh=a6GSY4JvErJWIeGzLSaOlcL8U+/dQkReuZxcjejkaP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MKkavV6AwpJ3Gn0reGH/U21F033jVb5rYZcPBBFsWPCR8VOMNIaTtzT6/mNdKhRT7 qwq7P9eUpCJahCfItrbPPFMRGrHOwJ2JRGEl8Nh/zqatchihR+SUfdf1ar/DubV074 CmVk+T+Y+DNr/+z4auIqKFIje8q0YO7hWc2kYVSA= 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 6.1 534/798] drm: Consistently use struct drm_mode_rect for FB_DAMAGE_CLIPS Date: Mon, 14 Oct 2024 16:18:08 +0200 Message-ID: <20241014141238.969355054@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241014141217.941104064@linuxfoundation.org> References: <20241014141217.941104064@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 6.1-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 @@ -567,7 +567,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) {