Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 42cfb412 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Mark Brown
Browse files

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: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 85aa0fe7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -273,13 +273,13 @@ static int dummy_dma_open(struct snd_pcm_substream *substream)
	return 0;
}

static const struct snd_pcm_ops dummy_dma_ops = {
static const struct snd_pcm_ops snd_dummy_dma_ops = {
	.open		= dummy_dma_open,
	.ioctl		= snd_pcm_lib_ioctl,
};

static const struct snd_soc_component_driver dummy_platform = {
	.ops = &dummy_dma_ops,
	.ops = &snd_dummy_dma_ops,
};

static const struct snd_soc_component_driver dummy_codec = {