Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421865

Re: [PATCH 1/2] ASoC: remove one extraneous 'const'

From Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] ASoC: remove one extraneous 'const'
Date 2016-06-14 14:40 +0200
Message-ID <rJVNn-4Px-7@gated-at.bofh.it> (permalink)
References <rJTBT-3uB-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <arnd@arndb.de>
> Fixes: a3178a3ed798 ("ASoC: arizona: Add a couple of missing consts")
> ---

Oops.. got a bit overzealous there, thanks for fixing.

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] ASoC: remove one extraneous 'const' Arnd Bergmann <arnd@arndb.de> - 2016-06-14 12:20 +0200
  [PATCH 2/2] ASoC: nau8825: mark pm functions __maybe_unused Arnd Bergmann <arnd@arndb.de> - 2016-06-14 12:20 +0200
    Applied "ASoC: nau8825: mark pm functions __maybe_unused" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-06-14 17:10 +0200
  Re: [PATCH 1/2] ASoC: remove one extraneous 'const' Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2016-06-14 14:40 +0200
  Applied "ASoC: remove one extraneous 'const'" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-06-14 17:10 +0200

csiph-web