From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbcFNMfa (ORCPT ); Tue, 14 Jun 2016 08:35:30 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:39231 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbcFNMf3 (ORCPT ); Tue, 14 Jun 2016 08:35:29 -0400 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.wolfsonmicro.com Date: Tue, 14 Jun 2016 13:35:29 +0100 From: Charles Keepax To: Arnd Bergmann CC: Mark Brown , Liam Girdwood , Richard Fitzgerald , Nikesh Oswal , , , Subject: Re: [PATCH 1/2] ASoC: remove one extraneous 'const' Message-ID: <20160614123529.GY20422@localhost.localdomain> References: <5926900.hCFXH4RQH6@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <5926900.hCFXH4RQH6@wuerfel> User-Agent: Mutt/1.5.23 (2014-03-12) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606140141 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 14, 2016 at 12:17:52PM +0200, Arnd Bergmann wrote: > 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") > --- Oops.. got a bit overzealous there, thanks for fixing. Acked-by: Charles Keepax Thanks, Charles