Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421738
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] ASoC: remove one extraneous 'const' |
| Date | 2016-06-14 12:20 +0200 |
| Message-ID | <rJTBT-3uB-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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")
---
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:
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll 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