[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 9 Sep 2019 15:52:04 +0200
From: Benjamin Gaignard <benjamin.gaignard@...com>
To: <benjamin.gaignard@...aro.org>, <airlied@...ux.ie>,
<daniel@...ll.ch>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
Benjamin Gaignard <benjamin.gaignard@...com>
Subject: [PATCH] drm: include: fix W=1 warnings in struct drm_dsc_config
Change scale_increment_interval and nfl_bpg_offset fields to
u32 to avoid W=1 warnings because we are testing them against
65535.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@...com>
---
include/drm/drm_dsc.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/drm/drm_dsc.h b/include/drm/drm_dsc.h
index 887954cbfc60..e495024e901c 100644
--- a/include/drm/drm_dsc.h
+++ b/include/drm/drm_dsc.h
@@ -207,11 +207,13 @@ struct drm_dsc_config {
* Number of group times between incrementing the scale factor value
* used at the beginning of a slice.
*/
- u16 scale_increment_interval;
+ u32 scale_increment_interval;
+
/**
* @nfl_bpg_offset: Non first line BPG offset to be used
*/
- u16 nfl_bpg_offset;
+
+ u32 nfl_bpg_offset;
/**
* @slice_bpg_offset: BPG offset used to enforce slice bit
*/
--
2.15.0
Powered by blists - more mailing lists