Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5287757ybe; Tue, 10 Sep 2019 01:06:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8U0w15MCxru1+AQNQ4HX0IvDesU2iVjHHsEUdASRhxrUmHyq/fXENVZ08gfOFw/9B08wq X-Received: by 2002:a17:906:bb0f:: with SMTP id jz15mr22890431ejb.264.1568102785705; Tue, 10 Sep 2019 01:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568102785; cv=none; d=google.com; s=arc-20160816; b=Fh2aOqvJkt5+svASfvudpz7KLv4FZqAZ+rqD/jzwj8eYuJiH/K0Zf5ed51DXHsRVyQ xqnTcmwcyL4wumVsH7QQ6EtZjBWmh5nE9hFBSIHU5R/eO2bq6NWy7mTMX1FvO5tMMe3W GbDs4Xas2qrSTYgY8pnfxwa+1E+Mg9GAhXGvstmGdMvUCap4JOEPgyrUaxnY10pSlmIH nrjyq8gEpyg8ddm+UhlPN5YpS8paCRgDVznGWE4MdyzudmYyi+Sox4XPhDG/2pza1iGS 0kdvX9jJRbrYhGDUvAO07XjlQiQj3K58M5hUh77njWlR02iTsHmeQyLfQmoTgy5JpzBC uWjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=UpIhYzvB1cHNRjNJgObglIgwi0MbjP++qgONMCCM+/Q=; b=DIYZPc5caiuTxfpaYAFGnfoLkB8Wdkc6wYweX/c0NZNGNWAgK41vugN2cgtzpJ1jMy FA23bzRjly17h0om8Ov+VFVav6fFA+aU5/NBw4CBvN8XFkMqJ9mvKNfrnTp7OY2juUzG 1GmWjW3NmgePluvuU30u8DSqnpNv/Z8M16+/6FR7aUZw1Ojro9nzv/M6/t4as/Vd7tUI lwq0fdME1hpPJ4fWoVZrzrvXyTgp2G4VJhNshbUrRzxmkcFAM6W+4y8Wle6133Tsb0Yr U+/MmsJ2IRDaMANi1qQdyQx5P/CMAUkKbxVyEYUm2nBwgl0rL1Js6hOC8EvbCwF9yOt6 qoHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=AHN0OFHL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si9051519ejs.227.2019.09.10.01.06.01; Tue, 10 Sep 2019 01:06:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=AHN0OFHL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404911AbfIINwd (ORCPT + 99 others); Mon, 9 Sep 2019 09:52:33 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:63494 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729606AbfIINwd (ORCPT ); Mon, 9 Sep 2019 09:52:33 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x89DkL4W007480; Mon, 9 Sep 2019 15:52:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=UpIhYzvB1cHNRjNJgObglIgwi0MbjP++qgONMCCM+/Q=; b=AHN0OFHL8lD1novtWs55nS5F9wrAx3jA8Cs59l1OSdWvPARJCbxc4yjtX7edDaKZcpDd xzLs7nmZO6UsGK5KXfC2msZ2+kLF20KMjCDB5iqecS3Oz0LHHNN53mvODbxtC7nI9bqF ig4lEQcUWJrr/a4e4xFTHNOg806qjMGIrg4zQUk6F6nMQ7H7pf/E61REPUHJ2kyaHIUi cTlvwLayxlqNOS1g0LVSzg47UUB535jyqm8lYlzJqAWzgeBKpNelnlBKMtoz/IsHKCe5 fBAg2tFFJ4ufK4r1qJxJBlIK0Z7OimROGGvKrsoAYNya1xrCdTOyzroLKflngzHFRH0q gg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com with ESMTP id 2uv212dwkt-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 09 Sep 2019 15:52:22 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 647564B; Mon, 9 Sep 2019 13:52:10 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4D9F82AE7A2; Mon, 9 Sep 2019 15:52:10 +0200 (CEST) Received: from SAFEX1HUBCAS22.st.com (10.75.90.92) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 9 Sep 2019 15:52:10 +0200 Received: from localhost (10.201.20.122) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 9 Sep 2019 15:52:09 +0200 From: Benjamin Gaignard To: , , CC: , , Benjamin Gaignard Subject: [PATCH] drm: include: fix W=1 warnings in struct drm_dsc_config Date: Mon, 9 Sep 2019 15:52:04 +0200 Message-ID: <20190909135205.10277-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.122] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-09_06:2019-09-09,2019-09-09 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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