From patchwork Thu Mar 7 10:10:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10842601 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BB78139A for ; Thu, 7 Mar 2019 10:12:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 466A92E183 for ; Thu, 7 Mar 2019 10:12:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 381292E374; Thu, 7 Mar 2019 10:12:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29F2D2E183 for ; Thu, 7 Mar 2019 10:12:39 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 22FFD854; Thu, 7 Mar 2019 11:11:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 22FFD854 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1551953557; bh=VrqTFiZykYVxL787NNEkaImDcdM9pjpIIz3r19dvA+A=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=oDt+CMQBuDFBV3BfruK89bFcPiHRLj9qw10aGlp5UbOkEM7Ot24FAT7HYYoWd/FAD D5UXyXjqvme4h8v01KSlTNNvs5PAJ/yxxBxVez1t1/91Qr4CQPIxffCfoUPm8WF7n4 GIMHlPGTBdsQLaXhW7E04FFpjx+s8+bgke7au5l0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 834A8F8072E; Thu, 7 Mar 2019 11:11:46 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id E9718F896F0; Thu, 7 Mar 2019 11:11:44 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7A037F8065A for ; Thu, 7 Mar 2019 11:11:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7A037F8065A Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1MqrsF-1gfxcn0tFp-00mp32; Thu, 07 Mar 2019 11:11:04 +0100 From: Arnd Bergmann To: Peter Ujfalusi , Mark Brown Date: Thu, 7 Mar 2019 11:10:49 +0100 Message-Id: <20190307101101.613881-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:k/2OR9k0QoyUUNIInBX08wqkIL3j6Yz0+PfESAJTH3/Iy1DhaZa wplY2bTKqUACOsclQ1NkytMx2WxJULDHIjjshJp8ii7siShpsoRktl3oVOjISLlDHjXUl5H Cr+FtXhx5wxNAv8W/jxnTHgXFovNPjviCmJ9/KyF+pdKukbTCFPEBxUDN5T4mlKEGI0MfMz yqxy19ZAxtz/YZZ1Uicuw== X-UI-Out-Filterresults: notjunk:1;V03:K0:CnygP1H9aSA=:5h6CzTF8RPe9XURDae0mf3 8SE+KYRkEOlqAhzLim/ZQwvH86n+2b2y5lc7CK/D9ZFLjXgTP4Cx/t4JogcXeTglDCRNEqPQG 2WSV0ALCDiPlOmVgsW1B+QQQhLbyMh+Mob0dx2qOHXziaVxyMXnX4DA3CZcg25n1u8EbgXYy5 ZUX3b+2boYKt2L7KYszmV6auDeEaDl+pvNJ8D+ptUqwuBpo1JHw9DuYc+b0X8CCNEXWqLJn/4 /4oYOzHonsJyOYVX8kLQJSdFsYZcueIFLadrGyQBH/ci1O2bFR8WYeq2StjkXTqZUtXyeAswL RjqjDEdSddP40q/ZCFyO13O4Yh3mGPDYE8OwddSU2t+NgQ0v84H191g91Fdy3e2IgreG4Zt2y u9hvCht2P1gfuNH6J7L0RrsuV1z19xw4KLEbFhHJUU3OVWcGVIpHiqdWp8eHsUa6ry/bfYI9s puRV/aM1DwGRRpO5a7CrKBPCRCjq/VuhGi1Uft0+25T9jTbvZ/WMeI3xD4rurdjd9EuQZCXro 3b1rp0k6cR/MvY+mDhmUlwZSwUw9/KQGU005ucSQXFUlcdOe2eY/UgEGIBajEIGGd9/ux82Fg MUlmmNsnyf9BiH4iLG9XRRvFDBiO+lxnvnnThsBAJarYr4BmuJ1MPGnA8xHzyC47WL+8BKVhq ux99vBbAqHuCDQJbu649SqQFKVI2oayhaEfl12nYDnFTZTztdBwdz02N+MI6Gwh0P+Dc+wybL mRyrhzFjzBauQBV0Hqw4rsrdu6295LkmIaLSJg== Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Tony Lindgren , Nick Desaulniers , Takashi Iwai , Liam Girdwood , Jarkko Nikula Subject: [alsa-devel] [PATCH] ASoC: ams-delta: remove duplicate 'const' X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP clang points out that SOC_ENUM_SINGLE_EXT_DECL() contains a 'const' modifier already, so adding another one does not make it more const: sound/soc/ti/ams-delta.c:203:14: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier] static const SOC_ENUM_SINGLE_EXT_DECL(ams_delta_audio_enum, ^ include/sound/soc.h:351:2: note: expanded from macro 'SOC_ENUM_SINGLE_EXT_DECL' const struct soc_enum name = SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(xtexts), xtexts) Signed-off-by: Arnd Bergmann Reviewed-by: Peter Ujfalusi Reviewed-by: Nathan Chancellor --- sound/soc/ti/ams-delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/ams-delta.c b/sound/soc/ti/ams-delta.c index 4dce494dfbd3..b9611db14c86 100644 --- a/sound/soc/ti/ams-delta.c +++ b/sound/soc/ti/ams-delta.c @@ -200,7 +200,7 @@ static int ams_delta_get_audio_mode(struct snd_kcontrol *kcontrol, return 0; } -static const SOC_ENUM_SINGLE_EXT_DECL(ams_delta_audio_enum, +static SOC_ENUM_SINGLE_EXT_DECL(ams_delta_audio_enum, ams_delta_audio_mode); static const struct snd_kcontrol_new ams_delta_audio_controls[] = {