Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1397575pxk; Thu, 10 Sep 2020 14:23:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb6sVEv1Z63vNhfUFxTlY+FDpl15GZE159pBT213+JcoWHSPmcZTf3FiZ+bfTd61DQQpCT X-Received: by 2002:a17:906:2cd2:: with SMTP id r18mr11418551ejr.371.1599773034484; Thu, 10 Sep 2020 14:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599773034; cv=none; d=google.com; s=arc-20160816; b=NiS1QAN0o/mbnDOW14LELVlxZ/SR1qaIvd0IlAUq0MfyNfF9ObTUmNlcc+Zo/nWOmv gBKGxhVj4Hs2cp4B0Rq1uncfu8/OXBeRz1IiDWe2Gl5yyjrUTWu0qtAwE3YYkYMVLeaH PSdEbijxPz8DPlRZarWej6IgCD0WeTFjS2WiPsICsHTBpVFn3OQb/GpVAkKR3V4pAbUc ydzC+oPPaR7ctuJ0og4OpSCkuXLguXKidI0LsSZiZ6HgEBAir3l/9EbV258DVdqK3G3B DNMKJCaP2iGMkygV4M74qHNu+mULML6ix6JQWZT9rItfDRvrvwgvy63wuP8X0QBHKgh7 WUdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=B2NmwaPYxIC+VzZRNnh6usIq6IatFsAI7BhNtpHcCEA=; b=mZQzM97NaTwfXQsXk1stS23g1Yv42TQaRuRLRIprM8G/luWeJMtNB+hB9M3gA94mxp 9tMWSvqmQ7u4hY85dzRCTrozizQC+CaCqSCsZFesgLJtqZVB/iI7oPzROfZdHAI6RVCs AOQrtiRNoASC9SC3U4hh68T8NmCNSzBIQb39M+fRAzoYF0uHWyZ5plxEKG4KkUTzAwKm 1S0jiLrddPeC/uivixClsMXIrre7RYW4St6XL67ucOcAxvseSIlt1wtkjr3Qj8EhYtjX f32FgfPYXiCnvflwtIYc0aw8oZrLvkriX3Ijcz24Q7Shsva6sNJHr/9LrGb2EAQbvYq7 r/Ew== 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 n13si4231991eju.705.2020.09.10.14.23.31; Thu, 10 Sep 2020 14:23:54 -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 S1728193AbgIJVWl (ORCPT + 99 others); Thu, 10 Sep 2020 17:22:41 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54734 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731096AbgIJOYE (ORCPT ); Thu, 10 Sep 2020 10:24:04 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3991877720EC491B196A; Thu, 10 Sep 2020 22:07:17 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 22:07:08 +0800 From: Jason Yan To: , , , , , , , , CC: Hulk Robot Subject: [PATCH] drm: xlnx: remove defined but not used 'scaling_factors_666' Date: Thu, 10 Sep 2020 22:06:30 +0800 Message-ID: <20200910140630.1191782-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This addresses the following gcc warning with "make W=1": drivers/gpu/drm/xlnx/zynqmp_disp.c:245:18: warning: ‘scaling_factors_666’ defined but not used [-Wunused-const-variable=] 245 | static const u32 scaling_factors_666[] = { | ^~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index a455cfc1bee5..98bd48f13fd1 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c @@ -242,12 +242,6 @@ static const u32 scaling_factors_565[] = { ZYNQMP_DISP_AV_BUF_5BIT_SF, }; -static const u32 scaling_factors_666[] = { - ZYNQMP_DISP_AV_BUF_6BIT_SF, - ZYNQMP_DISP_AV_BUF_6BIT_SF, - ZYNQMP_DISP_AV_BUF_6BIT_SF, -}; - static const u32 scaling_factors_888[] = { ZYNQMP_DISP_AV_BUF_8BIT_SF, ZYNQMP_DISP_AV_BUF_8BIT_SF, -- 2.25.4