Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp370931pxx; Thu, 29 Oct 2020 04:50:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHYOMgyhHXmJdK1ViCUZPDgNQbbT63cGMd+qGQie4+SJ/h6vYS3lym8CC5eQmwGHiVjavf X-Received: by 2002:a50:9b14:: with SMTP id o20mr3393044edi.328.1603972257520; Thu, 29 Oct 2020 04:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603972257; cv=none; d=google.com; s=arc-20160816; b=CvtdJVmcKd0Pe+CCYSZ36SaJO5eLqyRZkexlVoQSqarMGZ3ee+J8ilOmC55VVn04xg iVWckx6j88JPh+xYTkehT0E4Q2HfIDa5epA7AJTY/6mTOHC2auRwq8ZZJUGUMm72Rwev a8PiCtMey3D4kZnudv4rpB4IRUBxRBvzGtDkHLrhQ2QpHv+yGD/9oH3BCNE083jxVTnQ S5bVFXAIKpUjKKfqFMbiinPiMcU6Xie8U3+mnTl8W+PXMaikZleGF1KNxo1nzRSFMwdM upYHtJ43FxbPrGBEkg2yTTeZacOB8YySlElh1M0ykvAAMNAn7fW/aqqeV21hF+DYE2dM g8ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZPMr1R8QvWJZWKAG7xdoXKtJPO4n6c+CBmQ6Kxs8Ipc=; b=lwsuGTO9dFY3MhW0e3D4UlSzGLB0a4qfn59Xek6Nq3wxkI07KL55XogIuO6ApXD23v yvkz7dVh4Ow/Ze2niptkvtHPZJhKi6/Y4czYfhm6yeX0LYEO/RdMw+/4OdAwwNu33mHF o8UtrdaoYKtqeWN+lkD2Xa3xJPgb94p1V++vCrgMAupb210yrVMESrpM/VrBHg5Yo1ho 66yXFjmov2qd4Vzhvc1dJpf+hnFCMV+QJP0CFddb7uSC/LHVKG8tou6bcBLtCFur9ZBQ XslVpncOKlqRuMvl8l7PWWYUTv96Jow9C+iD0SAwghPvQvOwrGp2vVArWrnu8JchUg5k +djQ== 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 k21si1705379eja.393.2020.10.29.04.50.34; Thu, 29 Oct 2020 04:50:57 -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 S1725554AbgJ2LsL (ORCPT + 99 others); Thu, 29 Oct 2020 07:48:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6668 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgJ2LsL (ORCPT ); Thu, 29 Oct 2020 07:48:11 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CMNx14k5pz15NWj; Thu, 29 Oct 2020 19:48:05 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 19:47:55 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next] drm/amdgpu/swsmu: Remove unused static struct 'navi10_i2c_algo' Date: Thu, 29 Oct 2020 19:59:54 +0800 Message-ID: <1603972794-64534-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:2527:35: warning: ‘navi10_i2c_algo’ defined but not used [-Wunused-const-variable=] static const struct i2c_algorithm navi10_i2c_algo = { ^~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c index ef1a62e..bec63f2 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c @@ -2523,12 +2523,6 @@ static u32 navi10_i2c_func(struct i2c_adapter *adap) return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; } - -static const struct i2c_algorithm navi10_i2c_algo = { - .master_xfer = navi10_i2c_xfer, - .functionality = navi10_i2c_func, -}; - static ssize_t navi10_get_gpu_metrics(struct smu_context *smu, void **table) { -- 2.6.2