Skip to content

Commit 42cfb41

Browse files
Matthias Kaehlckebroonie
authored andcommitted
ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_dma_ops
The symbols 'dummy_dma_ops' is declared with different data types by sound/soc/soc-utils.c and arch/arm64/include/asm/dma-mapping.h. This leads to conflicts when soc-utils.c (indirectly) includes dma-mapping.h: sound/soc/soc-utils.c:282:33: error: conflicting types for 'dummy_dma_ops' static const struct snd_pcm_ops dummy_dma_ops = { ^ ... arch/arm64/include/asm/dma-mapping.h:27:33: note: previous declaration of 'dummy_dma_ops' was here extern const struct dma_map_ops dummy_dma_ops; ^ Rename the symbol in soc-utils.c to 'snd_dummy_dma_ops' to avoid the conflict. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 85aa0fe commit 42cfb41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/soc-utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@ static int dummy_dma_open(struct snd_pcm_substream *substream)
273273
return 0;
274274
}
275275

276-
static const struct snd_pcm_ops dummy_dma_ops = {
276+
static const struct snd_pcm_ops snd_dummy_dma_ops = {
277277
.open = dummy_dma_open,
278278
.ioctl = snd_pcm_lib_ioctl,
279279
};
280280

281281
static const struct snd_soc_component_driver dummy_platform = {
282-
.ops = &dummy_dma_ops,
282+
.ops = &snd_dummy_dma_ops,
283283
};
284284

285285
static const struct snd_soc_component_driver dummy_codec = {

0 commit comments

Comments
 (0)