Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1317565pxk; Sat, 12 Sep 2020 21:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY6a2haPk9wAqw+UCLUtZVw0A/J33DXu5d1Y8jUgq8z0qnlwEjmwr2HsAfMMKMFUv8sH0Y X-Received: by 2002:aa7:da89:: with SMTP id q9mr10912642eds.111.1599969780392; Sat, 12 Sep 2020 21:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599969780; cv=none; d=google.com; s=arc-20160816; b=qbkdbfiWgFC3li/y/dlE6c7JL9KrqvP866fEqCnSP70u8oacgbF2ve8DiFh1uceU2w th6886HyneUjTXNRDTx11+INCVf48TWDDP4JRPdIdbKNAT7Cs838MRMKrsdUuOG3d5P8 9Ek2jm8QvZIqa8x+tB5bT2g0OmOwN5VmX2mL8MHamCBd29ykulzFVkpnDMhXCA+gYpBf z+3V3KY4lQd+lV+MX0PVQ3pNLsxD2byE0ITn1G6uK1EdU5B+8W/AnXp35I5yhsdZgGHh J/cFOt9RSmF+f/uDdMIXDVMatjwxFt0O1vdHfCefsdGqn9jyoXUjsZFuTHdqtdzFHtGH VtQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Qi5BgYlxZ+ct/MUg8TILEG4D9MjaZLwf9MYNlT0Qzno=; b=Ysep82MjSA/P7SVHG3iRE3MMBqfNvlXic+VY2eGWjh+dtsxvQZXaSJLqf8mD8pdSW4 rbQ+4ls73AtERPKxizcyne4mSSvSiujKCj8t9tZupoF2ufrQdqwQhgx2K9BojITKZZQ/ c+oMrElXpTxOA66DpeCMDSh2AGvPP2ivcQFtGu+P7874sRjVXOgXS+uPpDHxsOl/bsrJ 98CGyhpRGvr8YLaeSuXxA25TpxJCqDfj8NtbDxRKdk5MAI88NQkliZF6MSku0NyRe/S6 3DlM/72lyFOb1JnmM4snlyIZaJpU+YuiW5AtGUQOzTXFyOLI4jd4hOA5zNGGbDsTNqHi O5Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r9Aj14+l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w23si4197421eju.558.2020.09.12.21.02.38; Sat, 12 Sep 2020 21:03:00 -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; dkim=pass header.i=@linaro.org header.s=google header.b=r9Aj14+l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725926AbgIMEA4 (ORCPT + 99 others); Sun, 13 Sep 2020 00:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbgIMEAx (ORCPT ); Sun, 13 Sep 2020 00:00:53 -0400 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE46C061574 for ; Sat, 12 Sep 2020 21:00:52 -0700 (PDT) Received: by mail-oi1-x241.google.com with SMTP id x19so13956722oix.3 for ; Sat, 12 Sep 2020 21:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Qi5BgYlxZ+ct/MUg8TILEG4D9MjaZLwf9MYNlT0Qzno=; b=r9Aj14+lIdavpJ+NJsWC5vYv24n/3JKlHJXYauYP+KP7wRy0NBwYopDsVwkaJh2/jI 4O7ffbUlthukJ/+7JpBwOKJ93Un7onuHbmbYPot5XtgB0Z8Fm4GnsrTPWGZk1EaElfBA uAXX48ChLHVnn9YRpRE7OCCpNmN1ilxu/5apivEkTnrKKoluIxKxKdRDoTRbxHqaXepE 8whj2m0loKB+t8CjS/jttbE6Fg/lulMCeHe230kkl/tYy73Yxs/1fYd/pwYzp/nD4OQ+ 3FuDYHWzIHBGUy3Na5SsTS7EGbuYCoOu+/aokDzh8ENfnyaDNSPne/knkGCwN97gFbwH VtDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Qi5BgYlxZ+ct/MUg8TILEG4D9MjaZLwf9MYNlT0Qzno=; b=t7PKjVsnD9U2iSR5N621QPMYJ0RjVJseI2LU3jc2lCwB1t6+wvTSp/PVco9jmsuMb2 Dgsg60RBsL14ZUvcyJJYFCnT9D8zdf88nlgHMZD78azL3vTsia8kQENySRYQ03bhU+0e t8GmsUS7vIMI0b1joyNx2ajw+QEhDcYWYGhtqGSpRNIK1cDknt1iqnkzdxZiAeytdnmP NrE9kDdVEkGx969kZVW1ixR0gyWHTjXxa/TB+xZcHSNgKUdOOq0K37Nh5sZkSvrs6lhu HLAiuHNfGEV2lAUtKmj/qOA+eRnS76hGiM5wrcu67FlQTCh887RjUoeqDbGusNVc3vLS I0Qw== X-Gm-Message-State: AOAM530bC9oMUO5JZdrrjZa8emlsqU8Yt6TrJS6RC5hc0Zl79sbxd8vX t5NYMVANtk1bAmPcvEseX23TFw== X-Received: by 2002:aca:1a09:: with SMTP id a9mr5074891oia.164.1599969651969; Sat, 12 Sep 2020 21:00:51 -0700 (PDT) Received: from yoga ([2605:6000:e5cb:c100:8898:14ff:fe6d:34e]) by smtp.gmail.com with ESMTPSA id o108sm1228694ota.25.2020.09.12.21.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 21:00:50 -0700 (PDT) Date: Sat, 12 Sep 2020 23:00:48 -0500 From: Bjorn Andersson To: Jason Yan Cc: agross@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Hulk Robot Subject: Re: [PATCH] clk: qcom: gcc-msm8939: remove defined but not used variables Message-ID: <20200913040048.GW3715@yoga> References: <20200911013722.1459387-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200911013722.1459387-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 10 Sep 20:37 CDT 2020, Jason Yan wrote: > 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[] = { > ^~~~~~~~~~~~~~~~~~~~~~ > Reviewed-by: Bjorn Andersson > 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 >