Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp188811ybk; Fri, 8 May 2020 23:33:42 -0700 (PDT) X-Google-Smtp-Source: APiQypIfX+FKsiJRb7jwLNDQPSF5PfhtkBKH5jwXLVgfoLyjKHUVVpuGzrMJ/kDdGeVoPn1xOsy4 X-Received: by 2002:a50:fa87:: with SMTP id w7mr5360350edr.0.1589006022562; Fri, 08 May 2020 23:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589006022; cv=none; d=google.com; s=arc-20160816; b=P8UI8SKHCMcWUZPPZ3NzulAbi/ojTdHoLaHwCl4hC1PhisvsyQsIotpj1iHlnq6P20 Hv2+fwid1vXyIj7x8AOhKX6kUi2FczzqEnMgVWNCt5Gd3j/69wc/BTS/kq1wDvtUrPGS SMZa17r9qbeR5wwg7L0aJd77g7d+EId9wX+SwWyR0skHmK8GgL7ZxNE7fW2kgLkg6uyg iL+Hc3iD+pdyQD9yPiq892H37GQmnoG2q/g3kBECpiP4PPkKqhxcze1dxcsusbdt9pC3 R/PouSOyO/lNUn4/eNRvUZ8BfetMtkCyPzRxorEaBlwIPSDZ0hSVSMLUXp9yNzJUomP/ jIiQ== 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=/WifNUwe3u7BPQpEORxrFxxc4SYiSXMkH7WxHCucawk=; b=uxjUMe1mo75Pq82mo8IfaJ91gZIGfmLVduUqGFqH+HN7X9uH8JuxcbvARiVMhLriH5 kqsnn43JV1c9krocgisJ7u6VvF1F6EyCfI0uFWYJiJS7Sme36mgky0hMsIk3TjYQ51qj +S4s2cr6YnM8nEROLyWpOEh3qxdNSfOPuMYFSIkru8DOwR0TXwAjuW+HDQem6Q/CdYXg 7pLiiYU4FwwBJy0cmGzpOGsz5FWdJcL4cOTQrWzMymgXmRUzjncqElTnxOV9gH9iRDAJ 7BeYr/ExzwftdHe389lsCOAnGKrrYDSDLwQrAgJK611KA3nf9cYXUjOiMP7CJsmmu4ej jvaQ== 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 g5si2170665ejk.339.2020.05.08.23.33.07; Fri, 08 May 2020 23:33:42 -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 S1728851AbgEIGay (ORCPT + 99 others); Sat, 9 May 2020 02:30:54 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4364 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726115AbgEIGay (ORCPT ); Sat, 9 May 2020 02:30:54 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id ACC85C1323C26D88B3D6; Sat, 9 May 2020 14:30:49 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 14:30:39 +0800 From: Jason Yan To: , , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] drm/amd/amdgpu: remove defined but not used 'crtc_offsets' Date: Sat, 9 May 2020 14:29:59 +0800 Message-ID: <20200509062959.42481-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:65:18: warning: ‘crtc_offsets’ defined but not used [-Wunused-const-variable=] static const u32 crtc_offsets[6] = ^~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c index c1a530dbe162..a75e472b4a81 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c @@ -61,17 +61,6 @@ MODULE_FIRMWARE("amdgpu/si58_mc.bin"); #define MC_SEQ_MISC0__MT__HBM 0x60000000 #define MC_SEQ_MISC0__MT__DDR3 0xB0000000 - -static const u32 crtc_offsets[6] = -{ - SI_CRTC0_REGISTER_OFFSET, - SI_CRTC1_REGISTER_OFFSET, - SI_CRTC2_REGISTER_OFFSET, - SI_CRTC3_REGISTER_OFFSET, - SI_CRTC4_REGISTER_OFFSET, - SI_CRTC5_REGISTER_OFFSET -}; - static void gmc_v6_0_mc_stop(struct amdgpu_device *adev) { u32 blackout; -- 2.21.1