[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5926900.hCFXH4RQH6@wuerfel>
Date: Tue, 14 Jun 2016 12:17:52 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Mark Brown <broonie@...nel.org>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Charles Keepax <ckeepax@...nsource.wolfsonmicro.com>,
Richard Fitzgerald <rf@...nsource.wolfsonmicro.com>,
Nikesh Oswal <Nikesh.Oswal@...rus.com>,
patches@...nsource.wolfsonmicro.com, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] ASoC: remove one extraneous 'const'
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@...db.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:
Powered by blists - more mailing lists