Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1530071pxk; Thu, 10 Sep 2020 18:46:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfsa89v36cnXshYeEoTopSO2l8Ylg9sb6BLN3LpOTCHLW53dHvEtERkE/LigR2aq4kUzX9 X-Received: by 2002:a17:906:2c01:: with SMTP id e1mr12200638ejh.128.1599788808943; Thu, 10 Sep 2020 18:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599788808; cv=none; d=google.com; s=arc-20160816; b=g6mPCUUqRsmpZbmgrOQIsVSw2q9j0V0XFxH/fn8qqc01EmgoJUgRT3RkyVmFIM9wVj RvcjZ5D2T553OKqF6BZbedo6IjGjtj4z422ozppYfatieR6qMZXhdzozklzvLg9On6c1 lpfP9G+Ez9gmAmnTEI4x5IENHbo4I1Tjp8oMW9kj+YhFeikXCxddH7iNfw+TlxMHcg34 Ngzahyw6yb55wkFdz5xzIGynE33jJWc+yAVrJdc10SWdxAwyHvK/ykDrsKZsWK2Qvw7S UvMI1xqQINCGtGr844jEBh/vKH8G8+eF1Gp294vc+RX/nsj30AHsE/XbSb8Ut0b4s2CR /wMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=A5jidjNcTLf3slFOWoIA0zbvunQ6u/CoY2htLAvsT+c=; b=I9dOwtDGUgA5xVqDibgZDzYNypQIs7vXALY1OY6aGGOvTATAaHI0ZqV9PGR16xxX4J LdSjZcWA7DTf+UPMlV3Doy2Z0kpY3ihkNjzJ7ZTSPb1XMJDdbNcYfh8Y7eCVWXa5bo+f musbp0Gj4Fk69t/zpl0XzDDkdzj496KLrGFvv/dm6c0UMTxle5+G4suVnrTIVXv2uPyr lfhqGkYeoRC2zeUGDiwYcPcybBgBejl36/ZCEzHwL6oTojonQddr9ObgVeuOFedDqLX9 LQS/Tzq4m6HbcelW/hVqxSFLPEgwRhAn/4/lQ8KxkzhWcH/4ZqgADJErQTYw3fvaPISm TH/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si328722edx.134.2020.09.10.18.46.25; Thu, 10 Sep 2020 18:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725805AbgIKBpG (ORCPT + 99 others); Thu, 10 Sep 2020 21:45:06 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:42876 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725710AbgIKBpF (ORCPT ); Thu, 10 Sep 2020 21:45:05 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7452C3F805FEE07E17DD; Fri, 11 Sep 2020 09:45:03 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Sep 2020 09:44:56 +0800 From: Wang ShaoBo CC: , , , , , , Subject: [PATCH -next] drm/imx: fix unused but set variable warnings Date: Fri, 11 Sep 2020 09:44:14 +0800 Message-ID: <20200911014414.4663-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix unused but set variable warning building with `make W=1`: drivers/gpu/drm/imx/dcss/dcss-plane.c:270:6: warning: variable ‘pixel_format’ set but not used [-Wunused-but-set-variable] u32 pixel_format; ^~~~~~~~~~~~ Fixes: 9021c317b770 ("drm/imx: Add initial support for DCSS on iMX8MQ") Reported-by: Hulk Robot Signed-off-by: Wang ShaoBo --- drivers/gpu/drm/imx/dcss/dcss-plane.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/imx/dcss/dcss-plane.c b/drivers/gpu/drm/imx/dcss/dcss-plane.c index 961d671f171b..e13652e3a115 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-plane.c +++ b/drivers/gpu/drm/imx/dcss/dcss-plane.c @@ -267,7 +267,6 @@ static void dcss_plane_atomic_update(struct drm_plane *plane, struct dcss_plane *dcss_plane = to_dcss_plane(plane); struct dcss_dev *dcss = plane->dev->dev_private; struct drm_framebuffer *fb = state->fb; - u32 pixel_format; struct drm_crtc_state *crtc_state; bool modifiers_present; u32 src_w, src_h, dst_w, dst_h; @@ -277,7 +276,6 @@ static void dcss_plane_atomic_update(struct drm_plane *plane, if (!fb || !state->crtc || !state->visible) return; - pixel_format = state->fb->format->format; crtc_state = state->crtc->state; modifiers_present = !!(fb->flags & DRM_MODE_FB_MODIFIERS); -- 2.17.1