ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_dma_ops
PATCH v2 1/1 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.
---
Changes in v2:
- use 'snd_dummy_dma_ops' instead of 'snd_dummy_ops'
--- sound/soc/soc-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-utils.c +2 -2
@@ -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 = {
Signature · 1 line
2.19.0.605.g01d371f741-goog
Mark Brown
maintainerApplied "ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_dma_ops" to the asoc tree
The patch
ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_dma_ops
has been applied to the asoc tree at
https://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
Quoted 1 line
From
42cfb412e24ffbb46d6de9590293bc44f921a0fbMon Sep 17 00:00:00 2001
From: Matthias Kaehlcke <[email protected]>
Date: Tue, 25 Sep 2018 11:09:14 -0700
Subject: [PATCH] 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.
--- sound/soc/soc-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-utils.c +2 -2
@@ -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 = {
Signature · 1 line
2.19.0