archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <>
To: Mark Brown <>
Cc: Liam Girdwood <>,
	Charles Keepax <>,
	Richard Fitzgerald <>,
	Nikesh Oswal <>,,,
Subject: [PATCH 1/2] ASoC: remove one extraneous 'const'
Date: Tue, 14 Jun 2016 12:17:52 +0200	[thread overview]
Message-ID: <5926900.hCFXH4RQH6@wuerfel> (raw)

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")
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) {

             reply	other threads:[~2016-06-14 10:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 10:17 Arnd Bergmann [this message]
2016-06-14 10:19 ` [PATCH 2/2] ASoC: nau8825: mark pm functions __maybe_unused Arnd Bergmann
2016-06-14 15:09   ` Applied "ASoC: nau8825: mark pm functions __maybe_unused" to the asoc tree Mark Brown
2016-06-14 12:35 ` [PATCH 1/2] ASoC: remove one extraneous 'const' Charles Keepax
2016-06-14 15:09 ` Applied "ASoC: remove one extraneous 'const'" to the asoc tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5926900.hCFXH4RQH6@wuerfel \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH 1/2] ASoC: remove one extraneous '\''const'\''' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).