[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230523102328.372204-1-15330273260@189.cn>
Date: Tue, 23 May 2023 18:23:28 +0800
From: Sui Jingfeng <15330273260@....cn>
To: Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Sui Jingfeng <suijingfeng@...ngson.cn>,
Li Yi <liyi@...ngson.cn>
Cc: linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
loongson-kernel@...ts.loongnix.cn,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>
Subject: [PATCH] drm/drm_vblank.c: using u32 instead of the int to store frame size
From: Sui Jingfeng <suijingfeng@...ngson.cn>
Both mode->crtc_htotal and mode->crtc_vtotal are u16 type, using a u32 is
to store the result instead of int.
Signed-off-by: Sui Jingfeng <suijingfeng@...ngson.cn>
Cc: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>
Cc: Maxime Ripard <mripard@...nel.org>
Cc: Thomas Zimmermann <tzimmermann@...e.de>
Cc: David Airlie <airlied@...il.com>
Cc: Daniel Vetter <daniel@...ll.ch>
Cc: dri-devel@...ts.freedesktop.org
Cc: linux-kernel@...r.kernel.org
Cc: loongson-kernel@...ts.loongnix.cn
---
drivers/gpu/drm/drm_vblank.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c
index 877e2067534f..a8dfe5551b7c 100644
--- a/drivers/gpu/drm/drm_vblank.c
+++ b/drivers/gpu/drm/drm_vblank.c
@@ -622,7 +622,7 @@ void drm_calc_timestamping_constants(struct drm_crtc *crtc,
/* Valid dotclock? */
if (dotclock > 0) {
- int frame_size = mode->crtc_htotal * mode->crtc_vtotal;
+ u32 frame_size = mode->crtc_htotal * mode->crtc_vtotal;
/*
* Convert scanline length in pixels and video
--
2.25.1
Powered by blists - more mailing lists