Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp564568ybt; Wed, 8 Jul 2020 06:36:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1z5xeLOlYMsrdefqHAey71T5ce5fFuaJLBc3Gwb74tDRiAMhOsm75b5NETiP+TbDs8lMi X-Received: by 2002:a17:906:f94c:: with SMTP id ld12mr50628578ejb.426.1594215390546; Wed, 08 Jul 2020 06:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594215390; cv=none; d=google.com; s=arc-20160816; b=jJ+uHudAw3bZa00x8/KzlXNYwLQ7UxwKLErbCuBEhZQ1dACQTmI3WyFSyKcb8Gh3rk bUaxgq/xhnip/S/V+Xv1FsQ0NmMm0xDUK5OgdHGjAdkzK9RbLU23gaGhkBmSzZDFUYOn SZp8IufDdesZGnRUUtfk6YM8iG6ZlSwipBwCO9fSJjLtjegZUCYwvrizpoUtZSQmnQsQ QtxGBv3EGRbkhZxKFkIseR2pfxTjGuxo/sPwKVHPSBU1NCN9OiajtY4+Xu09E+YJicdb c/Lrf7fhrtRS9BHNCW5K+AG3NJalFkvLfE5a3ruAXU9gCvNzvrK9rgailY4sPAYU2R+V UYOw== 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=pjxuwpy57URCV3RNfmG0k+yUDPUR1i8G9e47WhJiwJM=; b=iz6g7yWUy8vMtNfrHH6DgCUxXnLxcFqNce9TPrRe+qvne9OnBoaqcsl1LBpHJwAj7g CKThX6lA9Uw3ZbJtERQ2bUdFINIQl1aKblLZaiGbfumnT5NnpUOyjX8egn3D2qOnuxHr 9taSuECjoiccU0dXVsgsLex3QplyMcT851fhywm4F7QgqJVM+glVh3F9rBb9C41FRL8V STPOBCxWu/Oedx7+Kp4nUzMb8+KeWtNo7GxryTuLo/TGRUBWbUwbQeP433irDy/ZmSnA gosOb2xTid5p2jG9VbN3QI+6q4iQGIrCjjGp6xhd5U6p5z4Rd/71Ke8RSddiIf49mqE2 +5mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wvQm3G58; 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 l12si16276367ejq.20.2020.07.08.06.36.07; Wed, 08 Jul 2020 06:36:30 -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=wvQm3G58; 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 S1729589AbgGHNfF (ORCPT + 99 others); Wed, 8 Jul 2020 09:35:05 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:1473 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729436AbgGHNfF (ORCPT ); Wed, 8 Jul 2020 09:35:05 -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 068DRj2o011050; Wed, 8 Jul 2020 15:33:48 +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=pjxuwpy57URCV3RNfmG0k+yUDPUR1i8G9e47WhJiwJM=; b=wvQm3G58IY1mGmGiLJFy9yVUMPPMmCcq5JlYvSnKh6rxJ1qnC5sjmJOWt0MLlB8LwgB9 vIDMnP1xQ8yOULajq4rQthmSIMpSU4/4lW3nAyQkk3Zs3qUsksmLwLG6/4AgugCP0i2Q c0KK1CZuQ5yiQA7pLsW4uEIfbLoj/wRgPwaErO81wDqg6+ue3xnrZQLwYycdsIyXN6kn al9Lvwija1ialoQc7+C1CQJ0IBHuk6DtwBK6xO0NtGbDohDToQmAWIMlQdV+5CLQbScj Koh/NMNjwoK1X3TI4KBiuAJlB2kWzHOXvzc2QBK525oOrsiO2aGWIj9hgAjaUrTeWNRB hw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 322fhv7tkx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Jul 2020 15:33:48 +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 7370A10002A; Wed, 8 Jul 2020 15:33:47 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 51CFF2BF9B2; Wed, 8 Jul 2020 15:33:47 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.46) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 8 Jul 2020 15:33:46 +0200 Subject: Re: [PATCH v3 06/10] ASoC: sti: uniperif: fix 'defined by not used' warning To: Pierre-Louis Bossart , "alsa-devel@alsa-project.org" CC: "tiwai@suse.de" , open list , Takashi Iwai , Liam Girdwood , "broonie@kernel.org" , Lee Jones References: <20200707191615.98296-1-pierre-louis.bossart@linux.intel.com> <20200707191615.98296-7-pierre-louis.bossart@linux.intel.com> <31969204-1ada-3775-64da-092ded0bff8f@linux.intel.com> From: Arnaud POULIQUEN Message-ID: Date: Wed, 8 Jul 2020 15:33:45 +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: <31969204-1ada-3775-64da-092ded0bff8f@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG8NODE2.st.com (10.75.127.23) 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 hi On 7/8/20 2:55 PM, Pierre-Louis Bossart wrote: > > > On 7/8/20 4:11 AM, Arnaud POULIQUEN wrote: >> Hi Pierre-Louis, >> >> On 7/7/20 9:16 PM, Pierre-Louis Bossart wrote: >>> Fix W=1 warning. The table uni_tdm_hw is declared in a header included >>> by multiple C file. This isn't really a good practice but for now >>> using __maybe_unused makes the following warning go away. >>> >>> sound/soc/sti/sti_uniperif.c:12: >>> 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 = { >>> | ^~~~~~~~~~ >>> >>> Signed-off-by: Pierre-Louis Bossart >> >> Thanks for the patch, >> Seems that the same patch has already been proposed by Lee: >> https://www.spinics.net/lists/arm-kernel/msg820327.html > > that's right, we both fixed the same things, and this is the merged series. > Do you mind providing a tag if you're ok with the change? Sure, just need to known which one i should tag... I saw that you are discussing with Lee by default i ack both, i let you decide which one will be merged :) Acked-by: Arnaud Pouliquen > >> Regards, >> 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 2dc2da5d458b..a16adeb7c1e9 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 __maybe_unused const struct snd_pcm_hardware 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, >>>