From patchwork Tue Jun 14 10:17:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9175441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 75A956075D for ; Tue, 14 Jun 2016 10:16:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64E6C28047 for ; Tue, 14 Jun 2016 10:16:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47DB4282DC; Tue, 14 Jun 2016 10:16:44 +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=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75CC228047 for ; Tue, 14 Jun 2016 10:16:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 15F8226668E; Tue, 14 Jun 2016 12:16:41 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8E434261B01; Tue, 14 Jun 2016 12:16:33 +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 F3FC22650FA; Tue, 14 Jun 2016 12:16:31 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by alsa0.perex.cz (Postfix) with ESMTP id E8CCD261ABB for ; Tue, 14 Jun 2016 12:16:24 +0200 (CEST) Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MRzqc-1b1Amf16Dq-00TDXB; Tue, 14 Jun 2016 12:16:19 +0200 From: Arnd Bergmann To: Mark Brown Date: Tue, 14 Jun 2016 12:17:52 +0200 Message-ID: <5926900.hCFXH4RQH6@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-22-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:wYFNJcA8tbEU0zZA4MZZodtYQUq1A6pxd9h1wPgYC04v/T1JtCm 61r19ya4xCACJWDbpo7LBowvHNReCO960A5YuePHAbBLjUpqlQiiqZpaIzGmWR7h999V5C7 uos4BDHkmmty1MpxrQawBaARq7TlDTSi8/HVPK1YkeTFbF8g/KW6GUH+Wmt87Y/u9BZl/// RUBsvA0/N6uGw3ng6aWmQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:72lGL2P/8z8=:m59BtlQj+51br1u6GGGJeo KOav4pD9dNI+pdTS14p64J8xTkGojtWfL7Fobszh8YysHyJ2Sji/7Ck9Z/w896EOB9xNpe99x rWw1k/DfMELXnB8EI2ZUoanuCxQTSCBJP+AxB33z0Dj+GzrBdJfWpwf3TjixyancXxGZUGTLS Dlyn4rQ+Fh1V2ZliXXlbGBXlawg3pv+GXNaEMYvc0HHps3IaxSoYk74ILOgzbyKy537NDO9Xj bJGGxWvO+oS72N1/JHMzZhOobZF3srruRpojk3AVZRBS/rCmDARbe9E9Lcmq7N6PNI21Sb0d5 zLBCv/tqvhL6l2PrZDo2WT4ekQHYrwpYa4N8aiqc71CxPtHgat0qzXHnx48yKAmrZyYX/+Bc7 XAxGosxcdDl7reb4K8SrAoSDO0k4wds0k88UFcjqDIUqor0M0LY+lbyqmvJ7ixYzfq1YIP+ft IpZQEeF2g71M3WXxCheNLf+l2h2uIXK9iDfcG/vi4xkpXy1sR3t1HUdINWnP+v13OhcbBKQKl S1AWcuer2+mxRbG8ea6cmLgpLVtWxgNQ354T9KIwaAqsU7pIpSH8NktlkBMjIUip4pRyCB7qa JiNv1guDToFK3b217fxj+CETFJvdJ9B9uy5UVZfvwlO3IzR452jX14WeDmH62SuDrXWClQcu7 DhM1VnS1q/g6+o2SaoUdXu9QOKxuah3HaoBwQWPaoSFyv4pNt5nO3FvkQylWK0yqA7GUCtZO0 FMrfExBn5HvmedrT Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, Nikesh Oswal , Liam Girdwood , linux-kernel@vger.kernel.org, Charles Keepax , Richard Fitzgerald Subject: [alsa-devel] [PATCH 1/2] ASoC: remove one extraneous 'const' 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP A recent commit made a few arrays 'const', but also added the same attribute to a function return type, where it makes no sense, and we get a warning when building with W=1: sound/soc/codecs/arizona.c:1725:27: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] static const char * const arizona_dai_clk_str(int clk_id) This removes it again. Signed-off-by: Arnd Bergmann Fixes: a3178a3ed798 ("ASoC: arizona: Add a couple of missing consts") Acked-by: Charles Keepax --- This is one of two patches for warnings that were introduced first in today's linux-next. diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index ed0425763755..ecfdbfcae366 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1722,7 +1722,7 @@ restore_aif: return ret; } -static const char * const arizona_dai_clk_str(int clk_id) +static const char *arizona_dai_clk_str(int clk_id) { switch (clk_id) { case ARIZONA_CLK_SYSCLK: