diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-07-27 04:56:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-29 10:07:54 -0400 |
commit | d32e03f0b6f9b4ad260feca1c5c938a882066de9 (patch) | |
tree | cf4068d8c9ab57fe85c582b712ee8c96ab58205f /sound/soc/xtensa | |
parent | 36e914cc4bb5d1842e7c8a2e2b9b4f2935771c14 (diff) |
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>
Diffstat (limited to 'sound/soc/xtensa')
-rw-r--r-- | sound/soc/xtensa/xtfpga-i2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c index 039f65e36fa8..8382ffa3bcaf 100644 --- a/sound/soc/xtensa/xtfpga-i2s.c +++ b/sound/soc/xtensa/xtfpga-i2s.c | |||
@@ -75,7 +75,7 @@ struct xtfpga_i2s { | |||
75 | * stream in the pcm_close callback it synchronizes with the interrupt | 75 | * stream in the pcm_close callback it synchronizes with the interrupt |
76 | * handler by means of synchronize_rcu call. | 76 | * handler by means of synchronize_rcu call. |
77 | */ | 77 | */ |
78 | struct snd_pcm_substream *tx_substream; | 78 | struct snd_pcm_substream __rcu *tx_substream; |
79 | unsigned (*tx_fn)(struct xtfpga_i2s *i2s, | 79 | unsigned (*tx_fn)(struct xtfpga_i2s *i2s, |
80 | struct snd_pcm_runtime *runtime, | 80 | struct snd_pcm_runtime *runtime, |
81 | unsigned tx_ptr); | 81 | unsigned tx_ptr); |