Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp719266ybz; Fri, 17 Apr 2020 08:50:16 -0700 (PDT) X-Google-Smtp-Source: APiQypINn7WjSBF+w1/07IuyrC1FTF1suBDrOTD0hY8sa7+j4+yCJsCvRZ8dn1TXyEu3MltMRbae X-Received: by 2002:a17:906:4ecb:: with SMTP id i11mr3516228ejv.79.1587138615922; Fri, 17 Apr 2020 08:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587138615; cv=none; d=google.com; s=arc-20160816; b=xXRQ+LCEZSXr6Hzro5UYnZwhAkFzIXWg/cLVDO07nqccjktYkWHo0jFINJXRDwOAZb b0xjeLN+6XuypD+aOioQhtN5JH/9CFLmVEWTAU6CBgMEeLKQ1O7wu5TksrY17qbRy9IG UEub1evh2lu1YO22kZtdXvwQsckt0pt3Hday1HQua7UcT8RBsUMoqU+g+XDugl3ugxBd nV066OC8RIvp/WfUhRjrlHZMnTlVlp92M0MhD1PaoqNIr1Y455Ug4ekyvhdxq6nuJlO6 kGSLVFCmzks9g4G48bbuZOcacskDmPU7tIDdu97+Q2rLLAOfgFFz4VKfigQgaNnNy83m Y0Tg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=scH6T+Tx/xqq9g1mbUq6+iFiVKgvIffmZqbEJJNMgjk=; b=TSTRR/k6XKX+k+YiO0psTemdFLy7g+MSspq6MzCcUkUn2EvK/3jh9uS5hwE8dULL8m Yg96A2xZbaYw47jaxnswjEalJDCV2kzaX69X2aNKdj+3l+tfXFXf9b2RyCYVNazbC+8H 3gSlzw9+Di05lbmEA0spyLvlqe56pFITnml2fdQ3cCL5hh7wGus/dVjSsb6eN0KcdIgP QEXSqhb191n0X5/4zcSjWQvIP2ZULA4mDDsOpmTxAeSFQ5KO0d0eE8QUpx5GbjqNzJMe AjQslJeVXsHHSyC1/PskZfaN5nTDAdpcu7vOULFMahnRar1ndiQMxhId1uUF3PazTaPy Z2vg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si14875567edf.135.2020.04.17.08.49.52; Fri, 17 Apr 2020 08:50:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729535AbgDQPsY (ORCPT + 99 others); Fri, 17 Apr 2020 11:48:24 -0400 Received: from mga05.intel.com ([192.55.52.43]:45404 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728593AbgDQPsX (ORCPT ); Fri, 17 Apr 2020 11:48:23 -0400 IronPort-SDR: 1jEruK9lRC/6OfrUw2b4bEI79hBHGt8DfyNEQ6GRu/BUi7GJrAcpLiYDfkjE7ns647z05t52yu oMO+GNGe7/dw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 08:48:23 -0700 IronPort-SDR: ZBwe2yhen/Cg4VzUVmdatNxrnAr9gr2mfLpMqbuIjwHNm8+JZZMJryQnFAdgH7o+9ulVtWAxwR X5jV6k+GoP8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,395,1580803200"; d="scan'208";a="278417849" Received: from dsbrown-mobl.amr.corp.intel.com (HELO [10.251.128.242]) ([10.251.128.242]) by fmsmga004.fm.intel.com with ESMTP; 17 Apr 2020 08:48:21 -0700 Subject: Re: [PATCH] ASoC: Intel: atom: remove unused 'sst_mix_voip_controls' To: Jason Yan , cezary.rojewski@intel.com, liam.r.girdwood@linux.intel.com, yang.jie@linux.intel.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, hdegoede@redhat.com, tglx@linutronix.de, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Hulk Robot References: <20200417092344.14301-1-yanaijie@huawei.com> From: Pierre-Louis Bossart Message-ID: <8cd0ba8d-138d-d4da-d6fb-d2457ea2db13@linux.intel.com> Date: Fri, 17 Apr 2020 08:43:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200417092344.14301-1-yanaijie@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/17/20 4:23 AM, Jason Yan wrote: > Fix the following gcc warning: > > sound/soc/intel/atom/sst-atom-controls.c:710:30: warning: > ‘sst_mix_voip_controls’ defined but not used [-Wunused-const-variable=] > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_voip_controls); I'd prefer it if we didn't change this but only added __maybe_unused in the macro. This is 2013/2014 legacy stuff, some parts were not upstreamed and this was used by out-of-tree Android variations, and I don't know the consequences of taking this out. Better just squelch the warning but not change anything, no? > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- > sound/soc/intel/atom/sst-atom-controls.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/sound/soc/intel/atom/sst-atom-controls.c b/sound/soc/intel/atom/sst-atom-controls.c > index 69f3af4524ab..541f0059ba7a 100644 > --- a/sound/soc/intel/atom/sst-atom-controls.c > +++ b/sound/soc/intel/atom/sst-atom-controls.c > @@ -707,7 +707,6 @@ SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_pcm2_controls); > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_sprot_l0_controls); > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_media_l1_controls); > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_media_l2_controls); > -SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_voip_controls); > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_codec0_controls); > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_codec1_controls); > SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_modem_controls); >