* [PATCH 0/6] ASoC: Fix sparse warnings
@ 2015-07-27 8:56 Lars-Peter Clausen
2015-07-27 8:56 ` [PATCH 1/6] ASoC: wm8804: Drop dublicate const Lars-Peter Clausen
` (5 more replies)
0 siblings, 6 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
Hi,
This series fixes a couple of sparse warnings that have appeared recently
in the ASoC tree. Non of them are critical mostly just missing annotations
or storage qualifiers. It still makes sense to fix those though since it
reduces the noise that has to be filtered through when checking new code
for new (potentially critical) warnings.
- Lars
Lars-Peter Clausen (6):
ASoC: wm8804: Drop dublicate const
ASoC: lpass-ipq806x: Staticise local symbols
ASoC: rcar ctu: Staticise local symbols
ASoC: uniperf: Add missing __iomem annotation
ASoC: uniperf: Staticise local symbols
ASoC: xtfpga-i2s: Add missing __rcu annotation
sound/soc/codecs/wm8804.c | 2 +-
sound/soc/qcom/lpass-ipq806x.c | 2 +-
sound/soc/sh/rcar/ctu.c | 2 +-
sound/soc/sti/uniperif.h | 2 +-
sound/soc/sti/uniperif_player.c | 2 +-
sound/soc/xtensa/xtfpga-i2s.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
--
2.1.4
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 1/6] ASoC: wm8804: Drop dublicate const
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
@ 2015-07-27 8:56 ` Lars-Peter Clausen
2015-07-27 19:53 ` Charles Keepax
2015-07-29 14:13 ` Applied "ASoC: wm8804: Drop duplicate const" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols Lars-Peter Clausen
` (4 subsequent siblings)
5 siblings, 2 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
SOC_ENUM_SINGLE_DECL() already includes a const, drop the extra const.
Fixes the following sparse warning:
sound/soc/codecs/wm8804.c:101:14: warning: duplicate const
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/codecs/wm8804.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c
index c195c2e..8d91470 100644
--- a/sound/soc/codecs/wm8804.c
+++ b/sound/soc/codecs/wm8804.c
@@ -98,7 +98,7 @@ WM8804_REGULATOR_EVENT(0)
WM8804_REGULATOR_EVENT(1)
static const char *txsrc_text[] = { "S/PDIF RX", "AIF" };
-static const SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text);
+static SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text);
static const struct snd_kcontrol_new wm8804_tx_source_mux[] = {
SOC_DAPM_ENUM_EXT("Input Source", txsrc,
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
2015-07-27 8:56 ` [PATCH 1/6] ASoC: wm8804: Drop dublicate const Lars-Peter Clausen
@ 2015-07-27 8:56 ` Lars-Peter Clausen
2015-07-28 12:01 ` Srinivas Kandagatla
2015-07-29 14:13 ` Applied "ASoC: lpass-ipq806x: Staticise local symbols" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols Lars-Peter Clausen
` (3 subsequent siblings)
5 siblings, 2 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
ipq806x_data is not used outside this file, so it can be static.
Fixes the following sparse warning:
sound/soc/qcom/lpass-ipq806x.c:76:22: warning: symbol 'ipq806x_data'
was not declared. Should it be static?
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/qcom/lpass-ipq806x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/qcom/lpass-ipq806x.c b/sound/soc/qcom/lpass-ipq806x.c
index 7356d3a..7a41679 100644
--- a/sound/soc/qcom/lpass-ipq806x.c
+++ b/sound/soc/qcom/lpass-ipq806x.c
@@ -73,7 +73,7 @@ static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan)
return 0;
}
-struct lpass_variant ipq806x_data = {
+static struct lpass_variant ipq806x_data = {
.i2sctrl_reg_base = 0x0010,
.i2sctrl_reg_stride = 0x04,
.i2s_ports = 5,
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
2015-07-27 8:56 ` [PATCH 1/6] ASoC: wm8804: Drop dublicate const Lars-Peter Clausen
2015-07-27 8:56 ` [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols Lars-Peter Clausen
@ 2015-07-27 8:56 ` Lars-Peter Clausen
2015-07-27 23:36 ` Kuninori Morimoto
2015-07-29 14:13 ` Applied "ASoC: rcar ctu: Staticise local symbols" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation Lars-Peter Clausen
` (2 subsequent siblings)
5 siblings, 2 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
rsnd_of_parse_ctu() is not used outside this file so it can be static.
Fixes the following sparse warning:
sound/soc/sh/rcar/ctu.c:72:6: warning: symbol 'rsnd_of_parse_ctu' was
not declared. Should it be static?
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/sh/rcar/ctu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/ctu.c b/sound/soc/sh/rcar/ctu.c
index 05edd20..05498bb 100644
--- a/sound/soc/sh/rcar/ctu.c
+++ b/sound/soc/sh/rcar/ctu.c
@@ -69,7 +69,7 @@ struct rsnd_mod *rsnd_ctu_mod_get(struct rsnd_priv *priv, int id)
return &((struct rsnd_ctu *)(priv->ctu) + id)->mod;
}
-void rsnd_of_parse_ctu(struct platform_device *pdev,
+static void rsnd_of_parse_ctu(struct platform_device *pdev,
const struct rsnd_of_data *of_data,
struct rsnd_priv *priv)
{
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
` (2 preceding siblings ...)
2015-07-27 8:56 ` [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols Lars-Peter Clausen
@ 2015-07-27 8:56 ` Lars-Peter Clausen
2015-07-28 7:41 ` Arnaud Pouliquen
2015-07-29 14:13 ` Applied "ASoC: uniperf: Add missing __iomem annotation" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 5/6] ASoC: uniperf: Staticise local symbols Lars-Peter Clausen
2015-07-27 8:56 ` [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation Lars-Peter Clausen
5 siblings, 2 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
base referes to a iomem region, so it should have the __iomem annotation.
Fixes the following warnings from sparse:
sound/soc/sti/sti_uniperif.c:169:19: warning: incorrect type in
assignment (different address spaces)
sound/soc/sti/sti_uniperif.c:169:19: expected void *base
sound/soc/sti/sti_uniperif.c:169:19: got void [noderef] <asn:2>*
sound/soc/sti/uniperif_player.c:104:18: warning: incorrect type in
argument 1 (different address spaces)
sound/soc/sti/uniperif_player.c:104:18: expected void const volatile
[noderef] <asn:2>*addr
sound/soc/sti/uniperif_player.c:104:18: got void *
[...]
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/sti/uniperif.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sti/uniperif.h b/sound/soc/sti/uniperif.h
index ee462f7..f0fd5a9 100644
--- a/sound/soc/sti/uniperif.h
+++ b/sound/soc/sti/uniperif.h
@@ -1168,7 +1168,7 @@ struct uniperif {
/* Resources */
struct resource *mem_region;
- void *base;
+ void __iomem *base;
unsigned long fifo_phys_address;
int irq;
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 5/6] ASoC: uniperf: Staticise local symbols
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
` (3 preceding siblings ...)
2015-07-27 8:56 ` [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation Lars-Peter Clausen
@ 2015-07-27 8:56 ` Lars-Peter Clausen
2015-07-28 7:49 ` Arnaud Pouliquen
2015-07-29 14:13 ` Applied "ASoC: uniperf: Staticise local symbols" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation Lars-Peter Clausen
5 siblings, 2 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
uni_player_dai_ops is not used outside of this file so it should be static.
Fixes the following sparse warning:
sound/soc/sti/uniperif_player.c:959:30: warning: symbol
'uni_player_dai_ops' was not declared. Should it be static?
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/sti/uniperif_player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sti/uniperif_player.c b/sound/soc/sti/uniperif_player.c
index f609089..d8df906 100644
--- a/sound/soc/sti/uniperif_player.c
+++ b/sound/soc/sti/uniperif_player.c
@@ -956,7 +956,7 @@ static int uni_player_parse_dt(struct platform_device *pdev,
return 0;
}
-const struct snd_soc_dai_ops uni_player_dai_ops = {
+static const struct snd_soc_dai_ops uni_player_dai_ops = {
.startup = uni_player_startup,
.shutdown = uni_player_shutdown,
.prepare = uni_player_prepare,
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
` (4 preceding siblings ...)
2015-07-27 8:56 ` [PATCH 5/6] ASoC: uniperf: Staticise local symbols Lars-Peter Clausen
@ 2015-07-27 8:56 ` Lars-Peter Clausen
2015-07-28 10:48 ` Max Filippov
2015-07-29 14:13 ` Applied "ASoC: xtfpga-i2s: Add missing __rcu annotation" to the asoc tree Mark Brown
5 siblings, 2 replies; 19+ messages in thread
From: Lars-Peter Clausen @ 2015-07-27 8:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Lars-Peter Clausen,
Charles Keepax
tx_substeam is accessed using the RCU API and hence should have the __rcu
annotation. Fixes the following sparse warnings:
sound/soc/xtensa/xtfpga-i2s.c:165:24: error: incompatible types in
comparison expression (different address spaces)
sound/soc/xtensa/xtfpga-i2s.c:165:24: error: 'struct snd_pcm_substream
[noderef] <asn:4>*' versus
sound/soc/xtensa/xtfpga-i2s.c:165:24: error: 'struct snd_pcm_substream *'
sound/soc/xtensa/xtfpga-i2s.c:255:24: error: incompatible types in
comparison expression (different address spaces)
sound/soc/xtensa/xtfpga-i2s.c:255:24: error: 'struct snd_pcm_substream
[noderef] <asn:4>*' versus
sound/soc/xtensa/xtfpga-i2s.c:255:24: error: 'struct snd_pcm_substream *'
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/xtensa/xtfpga-i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c
index 039f65e..8382ffa 100644
--- a/sound/soc/xtensa/xtfpga-i2s.c
+++ b/sound/soc/xtensa/xtfpga-i2s.c
@@ -75,7 +75,7 @@ struct xtfpga_i2s {
* stream in the pcm_close callback it synchronizes with the interrupt
* handler by means of synchronize_rcu call.
*/
- struct snd_pcm_substream *tx_substream;
+ struct snd_pcm_substream __rcu *tx_substream;
unsigned (*tx_fn)(struct xtfpga_i2s *i2s,
struct snd_pcm_runtime *runtime,
unsigned tx_ptr);
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH 1/6] ASoC: wm8804: Drop dublicate const
2015-07-27 8:56 ` [PATCH 1/6] ASoC: wm8804: Drop dublicate const Lars-Peter Clausen
@ 2015-07-27 19:53 ` Charles Keepax
2015-07-29 14:13 ` Applied "ASoC: wm8804: Drop duplicate const" to the asoc tree Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Charles Keepax @ 2015-07-27 19:53 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Liam Girdwood, Max Filippov,
Mark Brown
On Mon, Jul 27, 2015 at 10:56:23AM +0200, Lars-Peter Clausen wrote:
> SOC_ENUM_SINGLE_DECL() already includes a const, drop the extra const.
> Fixes the following sparse warning:
>
> sound/soc/codecs/wm8804.c:101:14: warning: duplicate const
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols
2015-07-27 8:56 ` [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols Lars-Peter Clausen
@ 2015-07-27 23:36 ` Kuninori Morimoto
2015-07-29 14:13 ` Applied "ASoC: rcar ctu: Staticise local symbols" to the asoc tree Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Kuninori Morimoto @ 2015-07-27 23:36 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Banajit Goswami, Patrick Lai, patches,
Arnaud Pouliquen, Liam Girdwood, Max Filippov, Mark Brown,
Charles Keepax
Hi
> rsnd_of_parse_ctu() is not used outside this file so it can be static.
> Fixes the following sparse warning:
>
> sound/soc/sh/rcar/ctu.c:72:6: warning: symbol 'rsnd_of_parse_ctu' was
> not declared. Should it be static?
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
Thank you for this patch
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation
2015-07-27 8:56 ` [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation Lars-Peter Clausen
@ 2015-07-28 7:41 ` Arnaud Pouliquen
2015-07-29 14:13 ` Applied "ASoC: uniperf: Add missing __iomem annotation" to the asoc tree Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Arnaud Pouliquen @ 2015-07-28 7:41 UTC (permalink / raw)
To: Lars-Peter Clausen, Mark Brown, Liam Girdwood
Cc: alsa-devel@alsa-project.org, Banajit Goswami, Kuninori Morimoto,
Patrick Lai, patches@opensource.wolfsonmicro.com, Max Filippov,
Charles Keepax
Hi
On 07/27/2015 10:56 AM, Lars-Peter Clausen wrote:
> base referes to a iomem region, so it should have the __iomem annotation.
> Fixes the following warnings from sparse:
>
> sound/soc/sti/sti_uniperif.c:169:19: warning: incorrect type in
> assignment (different address spaces)
> sound/soc/sti/sti_uniperif.c:169:19: expected void *base
> sound/soc/sti/sti_uniperif.c:169:19: got void [noderef] <asn:2>*
> sound/soc/sti/uniperif_player.c:104:18: warning: incorrect type in
> argument 1 (different address spaces)
> sound/soc/sti/uniperif_player.c:104:18: expected void const volatile
> [noderef] <asn:2>*addr
> sound/soc/sti/uniperif_player.c:104:18: got void *
> [...]
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
> sound/soc/sti/uniperif.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/sti/uniperif.h b/sound/soc/sti/uniperif.h
> index ee462f7..f0fd5a9 100644
> --- a/sound/soc/sti/uniperif.h
> +++ b/sound/soc/sti/uniperif.h
> @@ -1168,7 +1168,7 @@ struct uniperif {
>
> /* Resources */
> struct resource *mem_region;
> - void *base;
> + void __iomem *base;
> unsigned long fifo_phys_address;
> int irq;
>
>
Thanks for the patch,
acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Br,
Arnaud
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 5/6] ASoC: uniperf: Staticise local symbols
2015-07-27 8:56 ` [PATCH 5/6] ASoC: uniperf: Staticise local symbols Lars-Peter Clausen
@ 2015-07-28 7:49 ` Arnaud Pouliquen
2015-07-29 14:13 ` Applied "ASoC: uniperf: Staticise local symbols" to the asoc tree Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Arnaud Pouliquen @ 2015-07-28 7:49 UTC (permalink / raw)
To: Lars-Peter Clausen, Mark Brown, Liam Girdwood
Cc: alsa-devel@alsa-project.org, Banajit Goswami, Kuninori Morimoto,
Patrick Lai, patches@opensource.wolfsonmicro.com, Max Filippov,
Charles Keepax
Hi,
On 07/27/2015 10:56 AM, Lars-Peter Clausen wrote:
> uni_player_dai_ops is not used outside of this file so it should be static.
> Fixes the following sparse warning:
>
> sound/soc/sti/uniperif_player.c:959:30: warning: symbol
> 'uni_player_dai_ops' was not declared. Should it be static?
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
Thanks for this one also
acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Br
Arnaud
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation
2015-07-27 8:56 ` [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation Lars-Peter Clausen
@ 2015-07-28 10:48 ` Max Filippov
2015-07-29 14:13 ` Applied "ASoC: xtfpga-i2s: Add missing __rcu annotation" to the asoc tree Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Max Filippov @ 2015-07-28 10:48 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Liam Girdwood, Mark Brown,
Charles Keepax
On Mon, Jul 27, 2015 at 11:56 AM, Lars-Peter Clausen <lars@metafoo.de> wrote:
> tx_substeam is accessed using the RCU API and hence should have the __rcu
> annotation. Fixes the following sparse warnings:
>
> sound/soc/xtensa/xtfpga-i2s.c:165:24: error: incompatible types in
> comparison expression (different address spaces)
> sound/soc/xtensa/xtfpga-i2s.c:165:24: error: 'struct snd_pcm_substream
> [noderef] <asn:4>*' versus
> sound/soc/xtensa/xtfpga-i2s.c:165:24: error: 'struct snd_pcm_substream *'
> sound/soc/xtensa/xtfpga-i2s.c:255:24: error: incompatible types in
> comparison expression (different address spaces)
> sound/soc/xtensa/xtfpga-i2s.c:255:24: error: 'struct snd_pcm_substream
> [noderef] <asn:4>*' versus
> sound/soc/xtensa/xtfpga-i2s.c:255:24: error: 'struct snd_pcm_substream *'
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
> sound/soc/xtensa/xtfpga-i2s.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thank you for the fix, Lars-Peter.
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
--
Thanks.
-- Max
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols
2015-07-27 8:56 ` [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols Lars-Peter Clausen
@ 2015-07-28 12:01 ` Srinivas Kandagatla
2015-07-29 14:13 ` Applied "ASoC: lpass-ipq806x: Staticise local symbols" to the asoc tree Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Srinivas Kandagatla @ 2015-07-28 12:01 UTC (permalink / raw)
To: Lars-Peter Clausen, Mark Brown, Liam Girdwood
Cc: alsa-devel, Banajit Goswami, Kuninori Morimoto, Patrick Lai,
patches, Arnaud Pouliquen, Max Filippov, Charles Keepax
On 27/07/15 09:56, Lars-Peter Clausen wrote:
> ipq806x_data is not used outside this file, so it can be static.
> Fixes the following sparse warning:
>
> sound/soc/qcom/lpass-ipq806x.c:76:22: warning: symbol 'ipq806x_data'
> was not declared. Should it be static?
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
> sound/soc/qcom/lpass-ipq806x.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/qcom/lpass-ipq806x.c b/sound/soc/qcom/lpass-ipq806x.c
> index 7356d3a..7a41679 100644
> --- a/sound/soc/qcom/lpass-ipq806x.c
> +++ b/sound/soc/qcom/lpass-ipq806x.c
> @@ -73,7 +73,7 @@ static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan)
> return 0;
> }
>
> -struct lpass_variant ipq806x_data = {
> +static struct lpass_variant ipq806x_data = {
> .i2sctrl_reg_base = 0x0010,
> .i2sctrl_reg_stride = 0x04,
> .i2s_ports = 5,
>
Thanks Lars for the patch, Looks good to me.
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
--srini
^ permalink raw reply [flat|nested] 19+ messages in thread
* Applied "ASoC: xtfpga-i2s: Add missing __rcu annotation" to the asoc tree
2015-07-27 8:56 ` [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation Lars-Peter Clausen
2015-07-28 10:48 ` Max Filippov
@ 2015-07-29 14:13 ` Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Mark Brown @ 2015-07-29 14:13 UTC (permalink / raw)
To: Lars-Peter Clausen, Max Filippov, Mark Brown; +Cc: alsa-devel
The patch
ASoC: xtfpga-i2s: Add missing __rcu annotation
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From d32e03f0b6f9b4ad260feca1c5c938a882066de9 Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Mon, 27 Jul 2015 10:56:28 +0200
Subject: [PATCH] ASoC: xtfpga-i2s: Add missing __rcu annotation
tx_substeam is accessed using the RCU API and hence should have the __rcu
annotation. Fixes the following sparse warnings:
sound/soc/xtensa/xtfpga-i2s.c:165:24: error: incompatible types in
comparison expression (different address spaces)
sound/soc/xtensa/xtfpga-i2s.c:165:24: error: 'struct snd_pcm_substream
[noderef] <asn:4>*' versus
sound/soc/xtensa/xtfpga-i2s.c:165:24: error: 'struct snd_pcm_substream *'
sound/soc/xtensa/xtfpga-i2s.c:255:24: error: incompatible types in
comparison expression (different address spaces)
sound/soc/xtensa/xtfpga-i2s.c:255:24: error: 'struct snd_pcm_substream
[noderef] <asn:4>*' versus
sound/soc/xtensa/xtfpga-i2s.c:255:24: error: 'struct snd_pcm_substream *'
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/xtensa/xtfpga-i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c
index 039f65e..8382ffa 100644
--- a/sound/soc/xtensa/xtfpga-i2s.c
+++ b/sound/soc/xtensa/xtfpga-i2s.c
@@ -75,7 +75,7 @@ struct xtfpga_i2s {
* stream in the pcm_close callback it synchronizes with the interrupt
* handler by means of synchronize_rcu call.
*/
- struct snd_pcm_substream *tx_substream;
+ struct snd_pcm_substream __rcu *tx_substream;
unsigned (*tx_fn)(struct xtfpga_i2s *i2s,
struct snd_pcm_runtime *runtime,
unsigned tx_ptr);
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Applied "ASoC: uniperf: Staticise local symbols" to the asoc tree
2015-07-27 8:56 ` [PATCH 5/6] ASoC: uniperf: Staticise local symbols Lars-Peter Clausen
2015-07-28 7:49 ` Arnaud Pouliquen
@ 2015-07-29 14:13 ` Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Mark Brown @ 2015-07-29 14:13 UTC (permalink / raw)
To: Lars-Peter Clausen, Arnaud Pouliquen, Mark Brown; +Cc: alsa-devel
The patch
ASoC: uniperf: Staticise local symbols
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 85cf604edc18722140f73e225394722801e55de0 Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Mon, 27 Jul 2015 10:56:27 +0200
Subject: [PATCH] ASoC: uniperf: Staticise local symbols
uni_player_dai_ops is not used outside of this file so it should be static.
Fixes the following sparse warning:
sound/soc/sti/uniperif_player.c:959:30: warning: symbol
'uni_player_dai_ops' was not declared. Should it be static?
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/sti/uniperif_player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sti/uniperif_player.c b/sound/soc/sti/uniperif_player.c
index f609089..d8df906 100644
--- a/sound/soc/sti/uniperif_player.c
+++ b/sound/soc/sti/uniperif_player.c
@@ -956,7 +956,7 @@ static int uni_player_parse_dt(struct platform_device *pdev,
return 0;
}
-const struct snd_soc_dai_ops uni_player_dai_ops = {
+static const struct snd_soc_dai_ops uni_player_dai_ops = {
.startup = uni_player_startup,
.shutdown = uni_player_shutdown,
.prepare = uni_player_prepare,
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Applied "ASoC: uniperf: Add missing __iomem annotation" to the asoc tree
2015-07-27 8:56 ` [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation Lars-Peter Clausen
2015-07-28 7:41 ` Arnaud Pouliquen
@ 2015-07-29 14:13 ` Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Mark Brown @ 2015-07-29 14:13 UTC (permalink / raw)
To: Lars-Peter Clausen, Arnaud Pouliquen, Mark Brown; +Cc: alsa-devel
The patch
ASoC: uniperf: Add missing __iomem annotation
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From b917abb4064b38b0613e953b09213e788ad94ad0 Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Mon, 27 Jul 2015 10:56:26 +0200
Subject: [PATCH] ASoC: uniperf: Add missing __iomem annotation
base referes to a iomem region, so it should have the __iomem annotation.
Fixes the following warnings from sparse:
sound/soc/sti/sti_uniperif.c:169:19: warning: incorrect type in
assignment (different address spaces)
sound/soc/sti/sti_uniperif.c:169:19: expected void *base
sound/soc/sti/sti_uniperif.c:169:19: got void [noderef] <asn:2>*
sound/soc/sti/uniperif_player.c:104:18: warning: incorrect type in
argument 1 (different address spaces)
sound/soc/sti/uniperif_player.c:104:18: expected void const volatile
[noderef] <asn:2>*addr
sound/soc/sti/uniperif_player.c:104:18: got void *
[...]
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/sti/uniperif.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sti/uniperif.h b/sound/soc/sti/uniperif.h
index ee462f7..f0fd5a9 100644
--- a/sound/soc/sti/uniperif.h
+++ b/sound/soc/sti/uniperif.h
@@ -1168,7 +1168,7 @@ struct uniperif {
/* Resources */
struct resource *mem_region;
- void *base;
+ void __iomem *base;
unsigned long fifo_phys_address;
int irq;
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Applied "ASoC: rcar ctu: Staticise local symbols" to the asoc tree
2015-07-27 8:56 ` [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols Lars-Peter Clausen
2015-07-27 23:36 ` Kuninori Morimoto
@ 2015-07-29 14:13 ` Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Mark Brown @ 2015-07-29 14:13 UTC (permalink / raw)
To: Lars-Peter Clausen, Kuninori Morimoto, Mark Brown; +Cc: alsa-devel
The patch
ASoC: rcar ctu: Staticise local symbols
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From e773c2f964640e103cc75a45aa4555c73ba55c29 Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Mon, 27 Jul 2015 10:56:25 +0200
Subject: [PATCH] ASoC: rcar ctu: Staticise local symbols
rsnd_of_parse_ctu() is not used outside this file so it can be static.
Fixes the following sparse warning:
sound/soc/sh/rcar/ctu.c:72:6: warning: symbol 'rsnd_of_parse_ctu' was
not declared. Should it be static?
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/sh/rcar/ctu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/ctu.c b/sound/soc/sh/rcar/ctu.c
index 05edd20..05498bb 100644
--- a/sound/soc/sh/rcar/ctu.c
+++ b/sound/soc/sh/rcar/ctu.c
@@ -69,7 +69,7 @@ struct rsnd_mod *rsnd_ctu_mod_get(struct rsnd_priv *priv, int id)
return &((struct rsnd_ctu *)(priv->ctu) + id)->mod;
}
-void rsnd_of_parse_ctu(struct platform_device *pdev,
+static void rsnd_of_parse_ctu(struct platform_device *pdev,
const struct rsnd_of_data *of_data,
struct rsnd_priv *priv)
{
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Applied "ASoC: lpass-ipq806x: Staticise local symbols" to the asoc tree
2015-07-27 8:56 ` [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols Lars-Peter Clausen
2015-07-28 12:01 ` Srinivas Kandagatla
@ 2015-07-29 14:13 ` Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Mark Brown @ 2015-07-29 14:13 UTC (permalink / raw)
To: Lars-Peter Clausen, Srinivas Kandagatla, Mark Brown; +Cc: alsa-devel
The patch
ASoC: lpass-ipq806x: Staticise local symbols
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From eccad574ef2d74e7519a092d9822932a27c6f165 Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Mon, 27 Jul 2015 10:56:24 +0200
Subject: [PATCH] ASoC: lpass-ipq806x: Staticise local symbols
ipq806x_data is not used outside this file, so it can be static.
Fixes the following sparse warning:
sound/soc/qcom/lpass-ipq806x.c:76:22: warning: symbol 'ipq806x_data'
was not declared. Should it be static?
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/qcom/lpass-ipq806x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/qcom/lpass-ipq806x.c b/sound/soc/qcom/lpass-ipq806x.c
index 7356d3a..7a41679 100644
--- a/sound/soc/qcom/lpass-ipq806x.c
+++ b/sound/soc/qcom/lpass-ipq806x.c
@@ -73,7 +73,7 @@ static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan)
return 0;
}
-struct lpass_variant ipq806x_data = {
+static struct lpass_variant ipq806x_data = {
.i2sctrl_reg_base = 0x0010,
.i2sctrl_reg_stride = 0x04,
.i2s_ports = 5,
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Applied "ASoC: wm8804: Drop duplicate const" to the asoc tree
2015-07-27 8:56 ` [PATCH 1/6] ASoC: wm8804: Drop dublicate const Lars-Peter Clausen
2015-07-27 19:53 ` Charles Keepax
@ 2015-07-29 14:13 ` Mark Brown
1 sibling, 0 replies; 19+ messages in thread
From: Mark Brown @ 2015-07-29 14:13 UTC (permalink / raw)
To: Lars-Peter Clausen, Charles Keepax, Mark Brown; +Cc: alsa-devel
The patch
ASoC: wm8804: Drop duplicate const
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From c8a6b92be8516c92cf46bc127fa0adf53a05d31c Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Mon, 27 Jul 2015 10:56:23 +0200
Subject: [PATCH] ASoC: wm8804: Drop duplicate const
SOC_ENUM_SINGLE_DECL() already includes a const, drop the extra const.
Fixes the following sparse warning:
sound/soc/codecs/wm8804.c:101:14: warning: duplicate const
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/wm8804.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c
index c195c2e..8d91470 100644
--- a/sound/soc/codecs/wm8804.c
+++ b/sound/soc/codecs/wm8804.c
@@ -98,7 +98,7 @@ WM8804_REGULATOR_EVENT(0)
WM8804_REGULATOR_EVENT(1)
static const char *txsrc_text[] = { "S/PDIF RX", "AIF" };
-static const SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text);
+static SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text);
static const struct snd_kcontrol_new wm8804_tx_source_mux[] = {
SOC_DAPM_ENUM_EXT("Input Source", txsrc,
--
2.1.4
^ permalink raw reply related [flat|nested] 19+ messages in thread
end of thread, other threads:[~2015-07-29 14:13 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-27 8:56 [PATCH 0/6] ASoC: Fix sparse warnings Lars-Peter Clausen
2015-07-27 8:56 ` [PATCH 1/6] ASoC: wm8804: Drop dublicate const Lars-Peter Clausen
2015-07-27 19:53 ` Charles Keepax
2015-07-29 14:13 ` Applied "ASoC: wm8804: Drop duplicate const" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 2/6] ASoC: lpass-ipq806x: Staticise local symbols Lars-Peter Clausen
2015-07-28 12:01 ` Srinivas Kandagatla
2015-07-29 14:13 ` Applied "ASoC: lpass-ipq806x: Staticise local symbols" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 3/6] ASoC: rcar ctu: Staticise local symbols Lars-Peter Clausen
2015-07-27 23:36 ` Kuninori Morimoto
2015-07-29 14:13 ` Applied "ASoC: rcar ctu: Staticise local symbols" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 4/6] ASoC: uniperf: Add missing __iomem annotation Lars-Peter Clausen
2015-07-28 7:41 ` Arnaud Pouliquen
2015-07-29 14:13 ` Applied "ASoC: uniperf: Add missing __iomem annotation" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 5/6] ASoC: uniperf: Staticise local symbols Lars-Peter Clausen
2015-07-28 7:49 ` Arnaud Pouliquen
2015-07-29 14:13 ` Applied "ASoC: uniperf: Staticise local symbols" to the asoc tree Mark Brown
2015-07-27 8:56 ` [PATCH 6/6] ASoC: xtfpga-i2s: Add missing __rcu annotation Lars-Peter Clausen
2015-07-28 10:48 ` Max Filippov
2015-07-29 14:13 ` Applied "ASoC: xtfpga-i2s: Add missing __rcu annotation" to the asoc tree Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.