Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3835551pxb; Tue, 26 Jan 2021 06:08:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+H0fu0tHpFGM8Wyi91+Qguef/zMDRAP82h3Ok2TBLwTshKGcbeIZqb/7CN2oPRhdxc8Js X-Received: by 2002:a50:8387:: with SMTP id 7mr4504807edi.131.1611670132920; Tue, 26 Jan 2021 06:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611670132; cv=none; d=google.com; s=arc-20160816; b=QZrT6D5iI50m/XUz4HAWx70C82ZuzOpBbX1DtOJ0IYgMvCg3m9bePavd/GnXKbYALW Q9iK+AHOHLYqv5PyS85unA7KiWOX1Sze51pZRlLDwEPBvM/P/m7/cU1T92JwskU0uhQc h1pLJ6YOvUtpX5FdSXF/qg/7CQ3zBypPMxAnvTK6PXMk5SCT4ivUkf1guSF7ovb2OUQP Cl/kLHbLHnY5NWQKxV1D8XbJ/HFqMaNwws0yz0bO0pesP7sbGXXuDoTDGHqQcoIcw8I7 pORC3JrjTZj4eRLzxbSvPpaGCM+8rUlaG7ql4dZn7gw2itkTFKOcKhiPHeN9azCz26ne /oHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MsK4CaeZUuQbxzldo8dFAj7Ip1Nra/4PEZy0IWNDwKA=; b=ei3FYhpEl2Vug5ecI6Z+CT4Qi3n5GwrKxwu5F405k295zrzqC/8UHDcnCZnH3qoSTc QcxdIKUoaEoAHm3iNmRXVll+tbCO6YV3nZvq5vZpAEOXtBPKSJiouqKn3qqQ6md2dHee vYllrSbKdhPyeLeVACwq9mp4DrSS8vkJBySpcOlKrrXlEnLfG5//OKTSKSMKngkcRcYd p10eO7Q3tanb3wh/N4Qedl5aEY+M/G5FOjs+2wjDk0kDlANO9Mul37eMIWcO63yVVRql 6Js9YDxF9Tm/s5Dg00OvzYL3I4A/XN/BzwRwhxROzh+diAuRqrQ4xIkIkEQvsdqI48CU +YfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oJDgbuOk; 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 lt6si6965345ejb.133.2021.01.26.06.08.23; Tue, 26 Jan 2021 06:08:52 -0800 (PST) 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=oJDgbuOk; 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 S2405550AbhAZOGO (ORCPT + 99 others); Tue, 26 Jan 2021 09:06:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405580AbhAZOEs (ORCPT ); Tue, 26 Jan 2021 09:04:48 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E82FC061A29 for ; Tue, 26 Jan 2021 06:04:08 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id n42so16236638ota.12 for ; Tue, 26 Jan 2021 06:04:08 -0800 (PST) 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=MsK4CaeZUuQbxzldo8dFAj7Ip1Nra/4PEZy0IWNDwKA=; b=oJDgbuOkCoz6zAvL2MLojuABQE1LnOHQsv8Sr8dJJkZmRIJW4fT+lBOiWCHwFxgyXl f5SppIvh70EKm2GeJyfWlQ5OA7825I/pCJhXVsP0EmZKDWarGYzCLE4YFS4n44X63N27 CuzTTDKuisrWcbigIqWkS1qeGfiDC76d2VkFbKyVzkzUgTqKWz8lqCKQ0drBWS9ehbTi ixyXptqL0Wa8G7XtYbpibYb3mZr2LJbpj5/Uxwy2/qnrdXTXSg77XIk7N1xvgWp6euQ4 jEXzA2BR8T82RcTsXX0Gr8l2vemy9hL5H7+O+sZKFrEyDvKrYauu0QHcsbcqMQXMc7Qd vaYg== 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=MsK4CaeZUuQbxzldo8dFAj7Ip1Nra/4PEZy0IWNDwKA=; b=WGgRApxS6G6u9tyB7u6pA06W23e1tbf6PMhXV/sVyai3y7mYVS4Ep97iRs1FZ/zZBE 4op4PqZeMCVLSffORUJb9C3LIg0adRNVTAbYfxQ7EwMUdW0eXiEaaH+ROQVp1u8pyTkw tkfNq3Nnrjb5z2DuQXQderTxm0uqkVssvz3KLcYpnRJ1rOJ+Oei5Eey992ojGXoowWrh r+3Eefzvrev2vCXOKVGlnTslCcjzIAUj7cqJLFpZjotx80qkOSjbKst6RHJ4mhvTWnT0 BvoKKKQGDsuVVW+Znf5ItvwQ4NIW6F2FMSXGkOXWza1zyaQQbezWPKiuFm8mNBT8Iqg1 SsMQ== X-Gm-Message-State: AOAM533cLHCI1V1jqGJbRsVFfXxvE5wkWDOyOo49Bfd60EvG80fOyacX NKCc+wUre6aeVjMeRLZXyIGpAw== X-Received: by 2002:a9d:6c90:: with SMTP id c16mr4106448otr.177.1611669846924; Tue, 26 Jan 2021 06:04:06 -0800 (PST) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 186sm3853267ood.6.2021.01.26.06.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 06:04:06 -0800 (PST) Date: Tue, 26 Jan 2021 08:04:04 -0600 From: Bjorn Andersson To: Lee Jones Cc: linux-kernel@vger.kernel.org, Andy Gross , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 18/21] clk: qcom: clk-rpm: Remove a bunch of superfluous code Message-ID: <20210126140404.GF1241218@yoga> References: <20210126124540.3320214-1-lee.jones@linaro.org> <20210126124540.3320214-19-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210126124540.3320214-19-lee.jones@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 26 Jan 06:45 CST 2021, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/clk/qcom/clk-rpm.c:453:29: warning: ?clk_rpm_branch_ops? defined but not used [-Wunused-const-variable=] > > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-arm-msm@vger.kernel.org > Cc: linux-clk@vger.kernel.org Reviewed-by: Bjorn Andersson > Signed-off-by: Lee Jones > --- > drivers/clk/qcom/clk-rpm.c | 63 -------------------------------------- > 1 file changed, 63 deletions(-) > > diff --git a/drivers/clk/qcom/clk-rpm.c b/drivers/clk/qcom/clk-rpm.c > index f71d228fd6bd5..a18811c380187 100644 > --- a/drivers/clk/qcom/clk-rpm.c > +++ b/drivers/clk/qcom/clk-rpm.c > @@ -73,62 +73,6 @@ > }, \ > } > > -#define DEFINE_CLK_RPM_PXO_BRANCH(_platform, _name, _active, r_id, r) \ > - static struct clk_rpm _platform##_##_active; \ > - static struct clk_rpm _platform##_##_name = { \ > - .rpm_clk_id = (r_id), \ > - .active_only = true, \ > - .peer = &_platform##_##_active, \ > - .rate = (r), \ > - .branch = true, \ > - .hw.init = &(struct clk_init_data){ \ > - .ops = &clk_rpm_branch_ops, \ > - .name = #_name, \ > - .parent_names = (const char *[]){ "pxo_board" }, \ > - .num_parents = 1, \ > - }, \ > - }; \ > - static struct clk_rpm _platform##_##_active = { \ > - .rpm_clk_id = (r_id), \ > - .peer = &_platform##_##_name, \ > - .rate = (r), \ > - .branch = true, \ > - .hw.init = &(struct clk_init_data){ \ > - .ops = &clk_rpm_branch_ops, \ > - .name = #_active, \ > - .parent_names = (const char *[]){ "pxo_board" }, \ > - .num_parents = 1, \ > - }, \ > - } > - > -#define DEFINE_CLK_RPM_CXO_BRANCH(_platform, _name, _active, r_id, r) \ > - static struct clk_rpm _platform##_##_active; \ > - static struct clk_rpm _platform##_##_name = { \ > - .rpm_clk_id = (r_id), \ > - .peer = &_platform##_##_active, \ > - .rate = (r), \ > - .branch = true, \ > - .hw.init = &(struct clk_init_data){ \ > - .ops = &clk_rpm_branch_ops, \ > - .name = #_name, \ > - .parent_names = (const char *[]){ "cxo_board" }, \ > - .num_parents = 1, \ > - }, \ > - }; \ > - static struct clk_rpm _platform##_##_active = { \ > - .rpm_clk_id = (r_id), \ > - .active_only = true, \ > - .peer = &_platform##_##_name, \ > - .rate = (r), \ > - .branch = true, \ > - .hw.init = &(struct clk_init_data){ \ > - .ops = &clk_rpm_branch_ops, \ > - .name = #_active, \ > - .parent_names = (const char *[]){ "cxo_board" }, \ > - .num_parents = 1, \ > - }, \ > - } > - > #define to_clk_rpm(_hw) container_of(_hw, struct clk_rpm, hw) > > struct rpm_cc; > @@ -450,13 +394,6 @@ static const struct clk_ops clk_rpm_ops = { > .recalc_rate = clk_rpm_recalc_rate, > }; > > -static const struct clk_ops clk_rpm_branch_ops = { > - .prepare = clk_rpm_prepare, > - .unprepare = clk_rpm_unprepare, > - .round_rate = clk_rpm_round_rate, > - .recalc_rate = clk_rpm_recalc_rate, > -}; > - > /* MSM8660/APQ8060 */ > DEFINE_CLK_RPM(msm8660, afab_clk, afab_a_clk, QCOM_RPM_APPS_FABRIC_CLK); > DEFINE_CLK_RPM(msm8660, sfab_clk, sfab_a_clk, QCOM_RPM_SYS_FABRIC_CLK); > -- > 2.25.1 >