Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp112134ybb; Thu, 9 Apr 2020 18:30:14 -0700 (PDT) X-Google-Smtp-Source: APiQypLrut6CsuA3ZIIRCtF9FRrxxypLgFKEBYGJUidFpwYHbeQxc6Ldg7pbqpSTy6ntiVakChxo X-Received: by 2002:ac8:665a:: with SMTP id j26mr2101819qtp.213.1586482214684; Thu, 09 Apr 2020 18:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586482214; cv=none; d=google.com; s=arc-20160816; b=ChQXh7HBjP0Ht+O55HP5W2M0AjVVDf5p3ZPQujVWOmQdxlPVnZ4XauNARudaTn3Imb N8ojUgMZ/ZeawEAUhwV3IPJt3N9uny4NCfBEHFrahYRsQNYVZhTHelPFp9a7G7wcb7vR Qxx4tU3RVBugirDL7mTYwd7Fgb3AtuRm8huAd/UpI703gjm3cfj2Zz1XfzELaa+OxWdq T9Bci6WEutVIGJskU9qqJ4P2s4Giy1Wmo33pWu6tvCfxDogIsdTP30a8BKkwGs0Bt2f0 TrJ6xy/TPK8GDKdZ42OQZbiEO31tpZZzuXEeK6B/L7r7T5OvFuvP4cDM4WpxAMBPDiNL JUPA== 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=nN8xwvqZ4ahN4tlReVAi/RVQy676gCX473FCAHCL3fg=; b=NEa57+QMxVEvcuuwNPB09yr1eaMpGethZKIH60f/VKfFQIpatKv7lR3ntIGdcvNJr4 TUjtiJkPE0ctQ+WOUbBu7x8Le0CQEfXs15oq9c6qnH1VmE/SSO2YvIysO1fduChx91/I P13QMXaeqRJDdQHMxhVltfD6HMN/27+lUoSK2f4oddM3mKwDFJ8Fp7hsGtFf2grzRwpI Qt+mmJD6rd6jM7WJ3gXqyqO/LYiEQTxikk0b9W6rMd0MVKfBdWISa7tDzhy/oTiLzgn6 crP0RWfbXpaclrj9uRGFc+T4nSkIDCSLKJzeF1TdQmt++tUKLowur+O4D7SivEjZnNn/ S3Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UBP9+WYQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v45si331048qth.66.2020.04.09.18.29.59; Thu, 09 Apr 2020 18:30:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UBP9+WYQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726626AbgDJB3L (ORCPT + 99 others); Thu, 9 Apr 2020 21:29:11 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35963 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgDJB3L (ORCPT ); Thu, 9 Apr 2020 21:29:11 -0400 Received: by mail-pf1-f193.google.com with SMTP id n10so409193pff.3 for ; Thu, 09 Apr 2020 18:29:11 -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=nN8xwvqZ4ahN4tlReVAi/RVQy676gCX473FCAHCL3fg=; b=UBP9+WYQjNxRjKr+51/Qa6T9+gHFoX0+gwGNYylPV15IvRDx7YYOcGu72q8lRcX4/w xDO0AL5qEJ0F4u12luB9Dgw+Pqjy+GZ4j2nH82BvrQWCf2zxOGvIwrpDOOVnVhHFiF35 YUhufF6/ix5n/gDXtC1mUIoY3W8AsD1E6isd90H0G/UhCy0zN/ywbRCrn1WVMOdO2N06 GNIwK3pF8yr1Sru7lb63vBbRaArbOV+hJUeXYhEhjjvEBvsfBt/wIpuz9Ar5s78ASgzy mijTJv5KdZSIJJqrNX1Z9YS6uAnp79zjei+j04oM+fTQx2rlZWO9l/HZ0pEwHVrv7Hjl wLqg== 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=nN8xwvqZ4ahN4tlReVAi/RVQy676gCX473FCAHCL3fg=; b=hRb9/gBkfoyxKC1TWRKo77hol45KmOy2kq9n93wN/PJJfPip1L13CaorWHfiHMKMUp NPM6EFx5N+scFuFI7Felc53XBf4BAh6+EE7Xh83jLcYUmI8fxK6swmteHTJwZlRlmQAW 63bcRU5XRFVVVs7AYlptw3NabJa6R+rckjwx+bG18R0KiY6IBf05i/HPhO2rC84lJOvi k7PiGUu9QXf4/oVbMM8wjdrEUxKVGtCYtp5Vm23ZkTeLtcdvSYq70C+kgMhq4fJzPqfP QXncB/EnMnZUEPs0HPg28mJQuSQLDgajqNnLbPjGi5SmZubD4lJX3XiQKP6q49rF+iII Kk1g== X-Gm-Message-State: AGi0PuYziAadApU3nTmRD4/qlCfgqK+Pigw7AH5s3J7O8sVXMrp6T7SY zb5Jx75A1eJLyQk3RUfJq53p3xQJXlw= X-Received: by 2002:a63:e749:: with SMTP id j9mr2140127pgk.319.1586482150941; Thu, 09 Apr 2020 18:29:10 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id e187sm329384pfe.143.2020.04.09.18.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 18:29:10 -0700 (PDT) Date: Thu, 9 Apr 2020 18:29:19 -0700 From: Bjorn Andersson To: Jason Yan Cc: agross@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] regulator: qcom_rpm: remove defined but not used 'pm8921_ftsmps' Message-ID: <20200410012919.GW20625@builder.lan> References: <20200409114026.38383-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: <20200409114026.38383-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 09 Apr 04:40 PDT 2020, Jason Yan wrote: > Fix the following gcc warning: > > drivers/regulator/qcom_rpm-regulator.c:607:34: warning: ?pm8921_ftsmps? > defined but not used [-Wunused-const-variable=] > static const struct qcom_rpm_reg pm8921_ftsmps = { > ^~~~~~~~~~~~~ > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan Reviewed-by: Bjorn Andersson > --- > drivers/regulator/qcom_rpm-regulator.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c > index 7fc97f23fcf4..1ee8ec686ed3 100644 > --- a/drivers/regulator/qcom_rpm-regulator.c > +++ b/drivers/regulator/qcom_rpm-regulator.c > @@ -604,16 +604,6 @@ static const struct qcom_rpm_reg pm8921_smps = { > .supports_force_mode_bypass = false, > }; > > -static const struct qcom_rpm_reg pm8921_ftsmps = { > - .desc.linear_ranges = ftsmps_ranges, > - .desc.n_linear_ranges = ARRAY_SIZE(ftsmps_ranges), > - .desc.n_voltages = 101, > - .desc.ops = &uV_ops, > - .parts = &rpm8960_smps_parts, > - .supports_force_mode_auto = true, > - .supports_force_mode_bypass = false, > -}; > - > static const struct qcom_rpm_reg pm8921_ncp = { > .desc.linear_ranges = ncp_ranges, > .desc.n_linear_ranges = ARRAY_SIZE(ncp_ranges), > -- > 2.17.2 >