Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp254719ybz; Fri, 17 Apr 2020 00:09:44 -0700 (PDT) X-Google-Smtp-Source: APiQypIumMrljuupBfBIMPC1IOjJyfBi+oB26ebi2ymUsLJ2/+Mi1SFdHhqiPuyktnkmAwQLdk9s X-Received: by 2002:a17:906:1c56:: with SMTP id l22mr1696179ejg.304.1587107384621; Fri, 17 Apr 2020 00:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107384; cv=none; d=google.com; s=arc-20160816; b=SPjkf3W239bNtX6k5TtcqRRnVDj1mwDFLOzKu155jCbGBb8ZL2Iw0H8gMU39qPvmF8 Now0LWe0MsTz4apTSdevb+f21hWmy10nHTlsCxFd1cmLUzR+lCTkA7sLRpcoN1FOLQHw NW88MgNtjtFTCqWe6m01VFp/ugSqY2hbla35vSL379Rym5kw07dP/BtRUETBXn+htpR2 50A0+o7OeG1O54IR3mhRJtl7WxXleAQqiM2SIfUJo6Z3a6iHqqerrQP3CvxP/3Q27B4x 0TTcfygfGxkFBaKVzuTVLTyVIYYuQ5cBqKDOvEY104CKnw16XB+FEm1vqa6PpUJSKhut PLkg== 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=NBVmIAOJnWaRHGWxzy9YuSVEGOeJS6fqeDKS8HonvQk=; b=uG28E1BS5COTm9+W/xiOnxdbQfRtvJNkJlQ9LMdO0bFmZE1Rw+++CLXlTmaE72KaiH l0Y4+eYhfBpxS5qNx5PVGha5muV1uR5ZGCEY02c54NRLbvLLMwUP6txR7mamBROFNigB puGoU+fkXNkxpLe2VNn8hygv/LtdesbbSbA6EVTJopSNmYNZHKhcWUMDIvClXzI2Q7eG WUCm7Lg6MGWNpqcbr0+TRBuSn39Rm5aaluw8ZhS0hBz25EYgwhTXj9bbbI5MFp1LjG3i xLJpQYOgysbq5nQ9/gNCs/+YWrugl7US4wqeRPhqrstAS3GZk1Kj24leD2UgDANgukIV ZjvQ== 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 k3si14905090edk.571.2020.04.17.00.09.21; Fri, 17 Apr 2020 00:09:44 -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 S1728624AbgDQHGN (ORCPT + 99 others); Fri, 17 Apr 2020 03:06:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2387 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728338AbgDQHGM (ORCPT ); Fri, 17 Apr 2020 03:06:12 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E3852DE581F6460A0D08; Fri, 17 Apr 2020 15:06:08 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:05:59 +0800 From: Jason Yan To: , , , , , , , , , CC: Hulk Robot Subject: [PATCH] drm/amd/powerplay: remove defined but not used variables Date: Fri, 17 Apr 2020 15:32:19 +0800 Message-ID: <20200417073219.40320-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/../powerplay/hwmgr/vega10_powertune.c:710:46: warning: ‘PSMGCEDCThresholdConfig_vega10’ defined but not used [-Wunused-const-variable=] static const struct vega10_didt_config_reg PSMGCEDCThresholdConfig_vega10[] = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_powertune.c:654:46: warning: ‘PSMSEEDCThresholdConfig_Vega10’ defined but not used [-Wunused-const-variable=] static const struct vega10_didt_config_reg PSMSEEDCThresholdConfig_Vega10[] = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- .../amd/powerplay/hwmgr/vega10_powertune.c | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c index ca9b23b5abc9..9757d47dd6b8 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c @@ -651,18 +651,6 @@ static const struct vega10_didt_config_reg PSMSEEDCStallDelayConfig_Vega10[] = { 0xFFFFFFFF } /* End of list */ }; -static const struct vega10_didt_config_reg PSMSEEDCThresholdConfig_Vega10[] = -{ -/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - * Offset Mask Shift Value - * --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - */ - /* SQ EDC THRESHOLD */ - { ixDIDT_SQ_EDC_THRESHOLD, DIDT_SQ_EDC_THRESHOLD__EDC_THRESHOLD_MASK, DIDT_SQ_EDC_THRESHOLD__EDC_THRESHOLD__SHIFT, 0x0000 }, - - { 0xFFFFFFFF } /* End of list */ -}; - static const struct vega10_didt_config_reg PSMSEEDCCtrlResetConfig_Vega10[] = { /* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -707,17 +695,6 @@ static const struct vega10_didt_config_reg PSMSEEDCCtrlConfig_Vega10[] = { 0xFFFFFFFF } /* End of list */ }; -static const struct vega10_didt_config_reg PSMGCEDCThresholdConfig_vega10[] = -{ -/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - * Offset Mask Shift Value - * --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - */ - { mmGC_EDC_THRESHOLD, GC_EDC_THRESHOLD__EDC_THRESHOLD_MASK, GC_EDC_THRESHOLD__EDC_THRESHOLD__SHIFT, 0x0000000 }, - - { 0xFFFFFFFF } /* End of list */ -}; - static const struct vega10_didt_config_reg PSMGCEDCDroopCtrlConfig_vega10[] = { /* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- 2.21.1