Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1529247pxk; Thu, 10 Sep 2020 18:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTTu4Po7gKrlkfKa+yyJmjnqUK8Rqxnfcd/K70YavavDXZDNiWjQkS6WQLhL3JOKMg4DSk X-Received: by 2002:a05:6402:22fc:: with SMTP id dn28mr11875277edb.365.1599788665992; Thu, 10 Sep 2020 18:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599788665; cv=none; d=google.com; s=arc-20160816; b=WoAAG3AzLjGw5aXyV2d4sCtychMaDouhCIH2RUQzqavNc+WnPczJqPAvdKefkYpr0u TPuBNuytuNpsuRfDchO1f4xEM5iQrTtozhFdg+/kCHkIQR04QwsYXqm/63DzyVA19y9Q Ro+8v/A6b9EEHqirbJMH+Y2J5BpOUiOFoESyp9YAzQCQMwVxar/H2hgh4THkQyAYGobn 5AOXB4vnbL+1CEH5+levQvaEpgAFs6VHbiMBZhGn5+haPukcbGFm2ojZ4Zf/xz5K8PNu Yy8LYko2hEz9v367TCFyYbMrJ1Q7I6OJc/rRmGR/rWNtCD54KIKv+o0fKxTdPwsM2YBr rsAA== 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=95tLxdx5sPRQbiPp4LZPlyItIr16ptUeBHqxmYlaY70=; b=n89h4kBb6VEsabykrpfktg9B95cILMaaZpNYCvBSjAJX3EQAfjUuSZZSx8N/k9FnV1 /8iJr12ipGqCv9f8Ec6i3qwC55slRjtWmoGEJco0imzRsPwi63P8jluLJ4bLAN2Nm7tf I1CH/E/Y2kMH/47SsNvl/J3G9vl9Wx+B13tY/n/srbmgfZwQCyVN4xTkWMdDvxnpOVLa qJ4Tt22909TK2eiGMY8R7dywhcP+Fhydo+wfkCN0H2RocpqaZwvXWs0TBCO8IBzGvo03 1mOyeJKSjHcez4m810PU31Ana3ZrhvRZ0ipd0lHhcwwd+7az7mzVNxoXoyR5PfKPX3pd BLxg== 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 v16si292658eds.222.2020.09.10.18.44.02; Thu, 10 Sep 2020 18:44:25 -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 S1725798AbgIKBiQ (ORCPT + 99 others); Thu, 10 Sep 2020 21:38:16 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35746 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725280AbgIKBiN (ORCPT ); Thu, 10 Sep 2020 21:38:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 66BCEDB7CBFD16C28D5E; Fri, 11 Sep 2020 09:38:11 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Sep 2020 09:38:01 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] clk: qcom: gcc-msm8939: remove defined but not used variables Date: Fri, 11 Sep 2020 09:37:22 +0800 Message-ID: <20200911013722.1459387-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/clk/qcom/gcc-msm8939.c:610:32: warning: ‘gcc_xo_gpll6_gpll0a_map’ defined but not used [-Wunused-const-variable=] static const struct parent_map gcc_xo_gpll6_gpll0a_map[] = { ^~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/qcom/gcc-msm8939.c:598:32: warning: ‘gcc_xo_gpll6_gpll0_map’ defined but not used [-Wunused-const-variable=] static const struct parent_map gcc_xo_gpll6_gpll0_map[] = { ^~~~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/clk/qcom/gcc-msm8939.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 778354f82b1e..39ebb443ae3d 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -595,24 +595,12 @@ static const struct clk_parent_data gcc_xo_gpll1_emclk_sleep_parent_data[] = { { .fw_name = "sleep_clk", .name = "sleep_clk" }, }; -static const struct parent_map gcc_xo_gpll6_gpll0_map[] = { - { P_XO, 0 }, - { P_GPLL6, 1 }, - { P_GPLL0, 2 }, -}; - static const struct clk_parent_data gcc_xo_gpll6_gpll0_parent_data[] = { { .fw_name = "xo" }, { .hw = &gpll6_vote.hw }, { .hw = &gpll0_vote.hw }, }; -static const struct parent_map gcc_xo_gpll6_gpll0a_map[] = { - { P_XO, 0 }, - { P_GPLL6, 1 }, - { P_GPLL0_AUX, 2 }, -}; - static const struct clk_parent_data gcc_xo_gpll6_gpll0a_parent_data[] = { { .fw_name = "xo" }, { .hw = &gpll6_vote.hw }, -- 2.25.4