Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5046296ybb; Tue, 24 Mar 2020 09:59:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsq+f/5MZpJCZLVBaDox2MoXGSe/YEHVUs3zYBKoFK+/gHrxbV+AHWjwqtGGzWLAIq67ryY X-Received: by 2002:a9d:6957:: with SMTP id p23mr7118955oto.299.1585069162865; Tue, 24 Mar 2020 09:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585069162; cv=none; d=google.com; s=arc-20160816; b=iVNGlQN39awoBHLkCNsJ7wIZT/nqqo0lsatILjsKn7skEOVMc7YIueiJ5r8fk6oARx e3G6ptuhKhE8LkjKA89vy06m1oy5qIOoWxRXbfn/qBTx96s7VOHA5TV0RBa4H8IaNtbv uoNAp/ABaDQljdhBkfwsik4U8JppNzqi/jP5Tg68iAE+CtBrLZL1rdQc4FWJuaHJ1tc9 zxKIQ7Ym0bzMvlWWLCyPDUZoU14J6I9Qg/ZInPxB0hBBAzgBt1whlAQakbBTrJLmi2Vi Rw3seT9VLI7UaTCPUw9IA1pz6/df09+ryWp6gi0SriDrq9uT+/NnP181BS1EcxHcMQD5 rvJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ScKwwBhE3C+v/4bfo/2rg3dRb/l6B3lG/MbO+yCkwiQ=; b=n0i0/exUF2tkFKBexmS769z9hBGMg/qQaXVBWWJhs8q1piRp5sqGgVec+1oTpH/N8n 3PNHYrT/TquWhYQ7He4UIbucOwBsX9ftbFDLnQ9MmSqOVK3pu8nlN31mtqIyERR8SMfz /D2N6nbOTxMjh/vhV1d2oUCuiLUzdKEXoRr5wFWbPxJz4Ib66KadrUY6TvOuL7j73VDT XQvhnkUMINkieL6i96tlurozGmw6GX9ihXghiEFJ0CRb4JxpaS7bN8sFzrD3Y1Y5+Uh7 dl5twpTDMvZTkCSJy9iXqUHfjn1PG/rvzYLHo1tK0tkTZt6XgweVV3A6P4buiA9dkLWy DMsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=k2nSqa5w; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si8956386oto.299.2020.03.24.09.59.09; Tue, 24 Mar 2020 09:59:22 -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=@cirrus.com header.s=PODMain02222019 header.b=k2nSqa5w; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727383AbgCXQ5P (ORCPT + 99 others); Tue, 24 Mar 2020 12:57:15 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:26204 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727273AbgCXQ5P (ORCPT ); Tue, 24 Mar 2020 12:57:15 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02OGiPYu031950; Tue, 24 Mar 2020 11:53:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=ScKwwBhE3C+v/4bfo/2rg3dRb/l6B3lG/MbO+yCkwiQ=; b=k2nSqa5wk6RiiR1ePTSFCZT+ILQOCQ9fB8ikhzKVgsChZhM5nYU2RX0CNMPqB0f9Jz/Y IDVW1ji7xWzHsjY4i17PQHz1iRUK3iijDUWQfLaLNUf79y+ZW5LKnUGB+Xz/mwqlOezZ FiCdFIUtxTS8qNf1LNEy0raQwgLnRU98Gl9i/ljsysv8XRbz3c7/LtI2O1ZIL6ZCML9+ 0kunFJRBZSEUeIqd5IRyZ0mxrET6G6usuphVlgKbcQkupdYZn6JdisPb1i0MAQeAiwGX yyAHGIc8GSZBT0g5EeouSxMxKfftEd/zNf2e/lrZ+TVV1pkKIc4SG+VWLL9T5YbFWUbm Bg== Authentication-Results: ppops.net; spf=fail smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 2ywgb2d7aw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 24 Mar 2020 11:53:22 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Tue, 24 Mar 2020 16:53:21 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1591.10 via Frontend Transport; Tue, 24 Mar 2020 16:53:20 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id DA09B2AB; Tue, 24 Mar 2020 16:53:20 +0000 (UTC) Date: Tue, 24 Mar 2020 16:53:20 +0000 From: Charles Keepax To: YueHaibing CC: , , , , , , Subject: Re: [PATCH -next] ASoC: wm8974: remove unused variables Message-ID: <20200324165320.GB81149@ediswmail.ad.cirrus.com> References: <20200324070615.16248-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200324070615.16248-1-yuehaibing@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-SPF-Result: fail X-Proofpoint-SPF-Record: v=spf1 include:spf-001ae601.pphosted.com include:spf.protection.outlook.com ip4:5.172.152.52 -all X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 clxscore=1011 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003240088 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 24, 2020 at 03:06:15PM +0800, YueHaibing wrote: > sound/soc/codecs/wm8974.c:200:38: warning: > wm8974_aux_boost_controls defined but not used [-Wunused-const-variable=] > sound/soc/codecs/wm8974.c:204:38: warning: > wm8974_mic_boost_controls defined but not used [-Wunused-const-variable=] > > commit 8a123ee2a46d ("ASoC: WM8974 DAPM cleanups") > left behind this, remove them. > > Signed-off-by: YueHaibing > --- > sound/soc/codecs/wm8974.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c > index dc4fe4f5239d..06ba36595ddd 100644 > --- a/sound/soc/codecs/wm8974.c > +++ b/sound/soc/codecs/wm8974.c > @@ -196,14 +196,6 @@ SOC_DAPM_SINGLE("MicN Switch", WM8974_INPUT, 1, 1, 0), > SOC_DAPM_SINGLE("MicP Switch", WM8974_INPUT, 0, 1, 0), > }; > > -/* AUX Input boost vol */ > -static const struct snd_kcontrol_new wm8974_aux_boost_controls = > -SOC_DAPM_SINGLE("Aux Volume", WM8974_ADCBOOST, 0, 7, 0); > - > -/* Mic Input boost vol */ > -static const struct snd_kcontrol_new wm8974_mic_boost_controls = > -SOC_DAPM_SINGLE("Mic Volume", WM8974_ADCBOOST, 4, 7, 0); > - I am not sure this is quite the right fix both of these are valid controls on the CODEC, and looks a bit like they shouldn't have been orphaned in the original patch. But given they clearly haven't been used by anyone in ten years and unless Mark has any objections: Acked-by: Charles Keepax Thanks, Charles