Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp564812ybt; Wed, 8 Jul 2020 06:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeC+5X+TXuEJLNeeob6DCvdx7GpX7I6qCo5HPB9a2lmvEGAud0ATJQvjb7+P6w3HjOA+D7 X-Received: by 2002:a17:906:404e:: with SMTP id y14mr50695505ejj.260.1594215414864; Wed, 08 Jul 2020 06:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594215414; cv=none; d=google.com; s=arc-20160816; b=PGa5uZoCfFqZoIMdNSiLFxZi/pBsnT1oHySs+drZSgLGVnTgy4en08WfBjiu84VPPC QPagBYSCegYZByltoVlNZiDNzhutUFrK8gMdgOXVrU5XL6roeFf9CQL+yE2FRRTtICBB KQPJyUIuG/5SuhmCXW5q4nN8hxQ0uu1wL4dGgOFZzwastZLMuP4LsVb0xb0xNf1dYzDg mrqwEDZ2FciZfaQ8QJnBTYbRgwUJ1w98DLNparDJAq0IQNyxyiwvffhCy8C87tnYOCoq ZCjGqiklbY8ETanFKbK6YZ8Z8IkCOIPuKH9EH2BeBfJKlOkAozZKF3IDW+vkBdhfcmfc HhXA== 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:dkim-signature; bh=yLQyONm0OZ3tpaysk6y1/Tkb1PKTErxNitHpKeaMJiU=; b=1D2ixJWZnTQVUiciz16AycbNpjneiRERQ3BxLY7KI9KHfu77wpHq0WU3+E+rjNX5/v UPixj47E9959wNAFFSrSht9+DugeyDHRP9UAEmnv+RRPU+/xuXaJfuekgeZgEb/LGTMk IFB21rhmVnXWke0QoiyOLQ1qdXF2aT+ovuQl0xENFXdilraE2PP0Vb/J7TowO5Rs/4Fr 2Y/uoUvFXb+/7Ym6u6I39FdYCxDR1MSc3duNgv21vvtC38x2TYEp/Z9cMOoP7pSIe0x5 jQB+jhzE7oCEVGShkppcKd56eCXiyjsl7/4O5jFOqcQ6U7PAKeSMkAS20ptS8ss5I2ls dFxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=F+6LQUKl; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id br6si16187923ejb.203.2020.07.08.06.36.31; Wed, 08 Jul 2020 06:36:54 -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=@st.com header.s=STMicroelectronics header.b=F+6LQUKl; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729458AbgGHNfd (ORCPT + 99 others); Wed, 8 Jul 2020 09:35:33 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:52359 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728210AbgGHNfd (ORCPT ); Wed, 8 Jul 2020 09:35:33 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 068DRjZY011083; Wed, 8 Jul 2020 15:34:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=yLQyONm0OZ3tpaysk6y1/Tkb1PKTErxNitHpKeaMJiU=; b=F+6LQUKl0v3IRItP9iY+weKyyx0Uj7xxK/zIexSzaZkncqX5ITkYjCSpDzfOgVXxKwh2 uupHtqOtsZ/n1op0CvB0E7n3j9zDdaX9FTPIauuQ8Z9hr1VfP2vXKa1QjYRN3/yizQL0 Yupbm9KTiF02FT5zWndOFV8BYEzXgtzryU/scHQtvTu105kYDE4v52a4hvQAzFTbA4uS psM5cwxZeer2E9QibAZAr3N0Vp0c7BoNUPqD7d3uqXAZ7euK41F9iKgio5LbYeHefk8A qFtqhSbjz+a1oeXoiA5EISj/WoNCjzhR9hQwHVmwULJp7tVX7tRDgxEsIk/+HOtKgzIG 3w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 322fhv7tru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Jul 2020 15:34:44 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7633810002A; Wed, 8 Jul 2020 15:34:44 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 66B392BF9B7; Wed, 8 Jul 2020 15:34:44 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.47) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 8 Jul 2020 15:34:42 +0200 Subject: Re: [PATCH v2 20/28] ASoC: sti: uniperif: Mark 'uni_tdm_hw' as __maybe_unused To: Lee Jones , "broonie@kernel.org" , "lgirdwood@gmail.com" , "perex@perex.cz" , "tiwai@suse.com" CC: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" References: <20200707143742.2959960-1-lee.jones@linaro.org> <20200707143742.2959960-21-lee.jones@linaro.org> From: Arnaud POULIQUEN Message-ID: Date: Wed, 8 Jul 2020 15:34:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200707143742.2959960-21-lee.jones@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-08_11:2020-07-08,2020-07-08 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/20 4:37 PM, Lee Jones wrote: > Only 2 of the 3 source files which include this headerfile actually > reference 'uni_tdm_hw'. The other source file 'sti_uniperif.c' sees > as it as being unused. Mark it as __maybe_unused to show that this > behaviour is not only known, it's intentional. > > Fixes the following W=1 kernel build warning(s): > > sound/soc/sti/uniperif.h:1351:38: warning: ‘uni_tdm_hw’ defined but not used [-Wunused-const-variable=] > 1351 | static const struct snd_pcm_hardware uni_tdm_hw = { > | ^~~~~~~~~~ > > Cc: Arnaud Pouliquen > Signed-off-by: Lee Jones Acked-by: Arnaud Pouliquen Thanks Arnaud > --- > sound/soc/sti/uniperif.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/sti/uniperif.h b/sound/soc/sti/uniperif.h > index 2dc2da5d458bd..e22d045d5cd99 100644 > --- a/sound/soc/sti/uniperif.h > +++ b/sound/soc/sti/uniperif.h > @@ -1348,7 +1348,7 @@ struct sti_uniperiph_data { > struct sti_uniperiph_dai dai_data; > }; > > -static const struct snd_pcm_hardware uni_tdm_hw = { > +static const struct snd_pcm_hardware __maybe_unused uni_tdm_hw = { > .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | > SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP | > SNDRV_PCM_INFO_MMAP_VALID, >