Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4340489ybb; Tue, 14 Apr 2020 05:29:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLHUMyxT5yYxU+nTeul4DjkidQYsuGYM9oaUqIMacAImDpqGiAFy+3KxBRTzEWKFrDdnqDi X-Received: by 2002:a17:906:13d1:: with SMTP id g17mr16294884ejc.162.1586867347958; Tue, 14 Apr 2020 05:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586867347; cv=none; d=google.com; s=arc-20160816; b=jl+lUgGPZ1x4oYb7dlOdxCSb+x9/7Wi5j6V62hscbsooejyPNQFHWMIsKjwiZCIkFl BE2NYdKsjpiAX+jjmbKwpkZe/0wrt/lv4xba29Lbl8M3bQaL930+aNodYXfEfSJou4sa 8mD8p5Cb0A9Fat1jQnDq4qvut0MnOCYOt1Pj8G+yugRTo0hYaPb7lPxsiXr5n6NmwHr/ yB5PC7m335ty3/KunmK6TJSSoAasg8rktNqg8WOKxYUgHsWwvz1WDRO6pBDbSDjT7di8 h4FQzv7PcUUz7SN6t43PYGIzAXEZYCMiZToBnEZAw5w5kJ3BIyeuzaD51/x0SEYh4Dj7 EoLA== 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=rcQpgv1Key8QVC7wzHHsc+4+bzbujuNGdaHqRH/c+zk=; b=KlXzT6+tbuBnJBIPwJTo46ROu6Qc4pEBHH1ihqt+GXi4dBehm1ZJXUvQm2YBERM7Ly dI+lfPQrbUXIYSPLb419cWi5rMLUqjMCVNF1dnxlqOC8PnLLFLnNE8p1O0FMQvZnIcU9 V7yvZJlx8omOgxsmahJFxfxLhxnhhJ29Y2EbeF6qOOgokL1lGffZAGDIqMwdqvXn254J tiW4IQWNbAc3YM9PzRnvAEZptFPo/paMG5AVxfU5+tjgJu3bGNRCrJPU2Qo8dyxi8YnV s40U6K1r/FcTJHiNk4TBr3wlBlKIqyMOKcd+oZgJq39UuOl5xI98/T25eyJPFFJxjg4k 1AJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for 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 i8si6982498ejf.197.2020.04.14.05.28.44; Tue, 14 Apr 2020 05:29:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S1730331AbgDMOGo (ORCPT + 99 others); Mon, 13 Apr 2020 10:06:44 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2311 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730285AbgDMOGn (ORCPT ); Mon, 13 Apr 2020 10:06:43 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 11DA4C60BE33694BA829; Mon, 13 Apr 2020 22:06:39 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 13 Apr 2020 22:06:31 +0800 From: Jason Yan To: , , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] drm/radeon: remove defined but not used variables in ci_dpm.c Date: Mon, 13 Apr 2020 22:33:00 +0800 Message-ID: <20200413143300.23244-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/radeon/ci_dpm.c:82:36: warning: ‘defaults_saturn_pro’ defined but not used [-Wunused-const-variable=] static const struct ci_pt_defaults defaults_saturn_pro = ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/ci_dpm.c:68:36: warning: ‘defaults_bonaire_pro’ defined but not used [-Wunused-const-variable=] static const struct ci_pt_defaults defaults_bonaire_pro = ^~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/radeon/ci_dpm.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c index a9257bed3484..134aa2b01f90 100644 --- a/drivers/gpu/drm/radeon/ci_dpm.c +++ b/drivers/gpu/drm/radeon/ci_dpm.c @@ -65,13 +65,6 @@ static const struct ci_pt_defaults defaults_bonaire_xt = { 0x17C, 0x172, 0x180, 0x1BC, 0x1B3, 0x1BD, 0x206, 0x200, 0x203, 0x25D, 0x25A, 0x255, 0x2C3, 0x2C5, 0x2B4 } }; -static const struct ci_pt_defaults defaults_bonaire_pro = -{ - 1, 0xF, 0xFD, 0x19, 5, 45, 0, 0x65062, - { 0x8C, 0x23F, 0x244, 0xA6, 0x83, 0x85, 0x86, 0x86, 0x83, 0xDB, 0xDB, 0xDA, 0x67, 0x60, 0x5F }, - { 0x187, 0x193, 0x193, 0x1C7, 0x1D1, 0x1D1, 0x210, 0x219, 0x219, 0x266, 0x26C, 0x26C, 0x2C9, 0x2CB, 0x2CB } -}; - static const struct ci_pt_defaults defaults_saturn_xt = { 1, 0xF, 0xFD, 0x19, 5, 55, 0, 0x70000, @@ -79,13 +72,6 @@ static const struct ci_pt_defaults defaults_saturn_xt = { 0x187, 0x187, 0x187, 0x1C7, 0x1C7, 0x1C7, 0x210, 0x210, 0x210, 0x266, 0x266, 0x266, 0x2C9, 0x2C9, 0x2C9 } }; -static const struct ci_pt_defaults defaults_saturn_pro = -{ - 1, 0xF, 0xFD, 0x19, 5, 55, 0, 0x30000, - { 0x96, 0x21D, 0x23B, 0xA1, 0x85, 0x87, 0x83, 0x84, 0x81, 0xE6, 0xE6, 0xE6, 0x71, 0x6A, 0x6A }, - { 0x193, 0x19E, 0x19E, 0x1D2, 0x1DC, 0x1DC, 0x21A, 0x223, 0x223, 0x26E, 0x27E, 0x274, 0x2CF, 0x2D2, 0x2D2 } -}; - static const struct ci_pt_config_reg didt_config_ci[] = { { 0x10, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND }, -- 2.21.1