From patchwork Thu May 11 11:44:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 99617 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp686923qge; Thu, 11 May 2017 04:46:51 -0700 (PDT) X-Received: by 10.28.29.205 with SMTP id d196mr4722694wmd.30.1494503211649; Thu, 11 May 2017 04:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494503211; cv=none; d=google.com; s=arc-20160816; b=PpEfNp+jYyj0MW8ninf3aItUdla3lYcC7kWNoxbdJtMjpI5ObSMx5E5Vvfc+MyhNTb x38Lgk5iFYmfeZymq0+lfykHo4IF3h3MHSRaCsjhnAR7d+BG7OI6pc6OzeMH5yfXNKsN YgPqx8icKjJJLl/qdOBM4mvtnB91v/lx0tzllOXWO6PGsd1v0+kc7TrevHpAGu+o1bHm HFxwwiZ95HAfcQ1iLHCVMM4RMwjAJyMdud+blDzx6ni5r9InMjMg4QuGqcbAv5Gn4arC wvBViRygT503xQ5Eu+J7UMimVNrrZHdH/Bfe/ytXzTnDyuDRYPH6ufrz9Z3C/tmWj4GE /P2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=AxpM0G+qeaSDeyiYfh9ZTRDkHXJHexMV0xOjIBrgVt0=; b=TCxQosRpHDycdrNyhW3wbmt/XEuifVlIs1Tdc1QYXWwC9Jpy69t+2Ft1ntApyTJYzJ D1hIEf34oCkSa9lKXdYbZBf55yXZ5wkD8kYmoL63aalXQFR9SYgkTPPYYT8XLotS1HUM 18eLxL14rBd+0GUCq82PKkg+BsPFcp24CRLKG/uJ4TWGDqHP/gufRdvW2ftqnruulKMW uR5WeBH9U9GXnVF8L0MYFHiJwRJGdPlX6NP8YXfMfppqPrVHq53Flvk+4Rry8oeESxdi 5ZeR0r2BbQo2elqeBX+zgraBoEa9CN3cmSkB6fTN/opnSxovxDNRma+kuwMqlx6eVetH o+ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id m7si418340wme.72.2017.05.11.04.46.51; Thu, 11 May 2017 04:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 72F0D266C59; Thu, 11 May 2017 13:46:49 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 82CD7266C5E; Thu, 11 May 2017 13:46:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by alsa0.perex.cz (Postfix) with ESMTP id C618826664F for ; Thu, 11 May 2017 13:46:44 +0200 (CEST) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0McnTN-1dQaUu1wMD-00HwuS; Thu, 11 May 2017 13:45:17 +0200 From: Arnd Bergmann To: Liam Girdwood , Mark Brown Date: Thu, 11 May 2017 13:44:38 +0200 Message-Id: <20170511114512.2865725-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:quTdZ3kfHrNn4m4PJhirdfxCVfbhCH+rmrysfEzhZXXd9/eOacJ Uw2TWF090YhLhxUlaIeJ9y6IsnfRvzgQqlFZemf35Kh2cBD67dNnqY6xBIEuEQbH9gDJyYZ FP0NyS0UVEEV/ZXNUXqb2uHTe5Kk4Yd84ysSPcuCZu131uThg9MIiucSom2pcvxSqmPduPh McY4n44tESJMHfOA91T8Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:yYFFh5u4Wak=:D6d1qMQ51892Gras47oKOx 2OxF8dqgchDay5nnlnz9VgkCbXGoNZv773GQhxQRqoafQzRpuB+2y6g4FLIv8ztJ/eGxD+lXd 809p3ZBi4sHvCVfj5rkhDwgQOhYApVe9wiFt6qHwsqx2V9zkxudjr6tXXiLUj7dgYf3D72rn9 4N31WDzpmSkisB3Qj5rIuH0h65OMMKoJEwyUVeiB9A3BjsdSn4B8wVNyLT4StUUyHYHdiP5fN jlk0X1/0jCl1OySvzYrubBkl3pnkeqSo8mWr49q9yAcUfioalReOJUGeXX4vsmESxpGoaLU+c afAY7YFlOsPg5hM2P3zKuOU119BexiNEeSIzJ1sP3T8cQkRP4lE3rRlsmw9SD6ADmWje7IXSQ sO3lTFdPoXWiPebVNJNQftkvis+vJBdYt9XKnD5B/XkfsY5GQYD5GSh3yfp2NfBRifJieQXXb OGRNGkI+CxycWKgfMpFhEaCNE4eAIZQ2YJswA7AD2Od+Ujr/jqsbozC3VIoW4wydZzURRXuvd uT5MrKVKUuhpvodm6N6Y9O4o04arvlVWNDJe0wa7HJn8rEF3IlX0L9vlGj3msNhx3BG16EcxS bjFrlZoZOrIuAeAIZ510O547gY+Fdd4NyDHXM+qogI0yMrWCxzLT48ZYJXNrweuODQviryGx4 awYSRIGk8bu89AfnQCCXL/ssWPegR+yMAhRCA1PPydqF10kOmHuDG2kPEwZ2dKWZAbrY= Cc: Oder Chiou , alsa-devel@alsa-project.org, Arnd Bergmann , Douglas Anderson , linux-kernel@vger.kernel.org, Bard Liao Subject: [alsa-devel] [PATCH 1/2] ASoC: rt5514: fix gcc-7 warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org gcc-7 warns that there is a duplicate 'const' specifier in some variables that are declared using the SOC_ENUM_SINGLE_DECL macro: sound/soc/codecs/rt5514.c:398:14: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] static const SOC_ENUM_SINGLE_DECL( sound/soc/codecs/rt5514.c:405:14: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] static const SOC_ENUM_SINGLE_DECL( This removes one to fix the warning. Fixes: 4a6180ea7399 ("ASoC: rt5514: add rt5514 codec driver") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/rt5514.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c index f91221b1ddf0..28ab9e2bb051 100644 --- a/sound/soc/codecs/rt5514.c +++ b/sound/soc/codecs/rt5514.c @@ -395,14 +395,14 @@ static const char * const rt5514_dmic_src[] = { "DMIC1", "DMIC2" }; -static const SOC_ENUM_SINGLE_DECL( +static SOC_ENUM_SINGLE_DECL( rt5514_stereo1_dmic_enum, RT5514_DIG_SOURCE_CTRL, RT5514_AD0_DMIC_INPUT_SEL_SFT, rt5514_dmic_src); static const struct snd_kcontrol_new rt5514_sto1_dmic_mux = SOC_DAPM_ENUM("Stereo1 DMIC Source", rt5514_stereo1_dmic_enum); -static const SOC_ENUM_SINGLE_DECL( +static SOC_ENUM_SINGLE_DECL( rt5514_stereo2_dmic_enum, RT5514_DIG_SOURCE_CTRL, RT5514_AD1_DMIC_INPUT_SEL_SFT, rt5514_dmic_src);