Skip to contentSkip to conversation

ALSA: memalloc: Drop superfluous snd_dma_buffer_sync() declaration

PATCH New Takashi Iwai 1 participant 2 messages Oct 19, 2021 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ALSA: memalloc: Drop superfluous snd_dma_buffer_sync() declaration

snd_dma_buffer_sync() is declared twice, and the one outside the ifdef CONFIG_HAS_DMA could lead to a build error when CONFIG_HAS_DMA=n. As it's an overlooked leftover after rebase, drop this line.

Fixes a25684a95646 ("ALSA: memalloc: Support for non-contiguous page allocation")
---
 include/sound/memalloc.h | 3 ---
 1 file changed, 3 deletions(-)
include/sound/memalloc.h +0 -3
index df615052dad4..653dfffb3ac8 100644
@@ -97,9 +97,6 @@ static inline void snd_dma_buffer_sync(struct snd_dma_buffer *dmab,
 				       enum snd_dma_sync_mode mode) {}
 #endif
 
-void snd_dma_buffer_sync(struct snd_dma_buffer *dmab,
-			 enum snd_dma_sync_mode mode);
-
 dma_addr_t snd_sgbuf_get_addr(struct snd_dma_buffer *dmab, size_t offset);
 struct page *snd_sgbuf_get_page(struct snd_dma_buffer *dmab, size_t offset);
 unsigned int snd_sgbuf_get_chunk_size(struct snd_dma_buffer *dmab,
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/2 ALSA: memalloc: Fix a typo in snd_dma_buffer_sync() description

It caused a warning for kernel-doc build.

Fixes a25684a95646 ("ALSA: memalloc: Support for non-contiguous page allocation")
---
 sound/core/memalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/memalloc.c +1 -1
index acdebecf1a2e..99cd0f67daa1 100644
@@ -196,7 +196,7 @@ EXPORT_SYMBOL(snd_dma_buffer_mmap);
 /**
  * snd_dma_buffer_sync - sync DMA buffer between CPU and device
  * @dmab: buffer allocation information
- * @mod: sync mode
+ * @mode: sync mode
  */
 void snd_dma_buffer_sync(struct snd_dma_buffer *dmab,
 			 enum snd_dma_sync_mode mode)
Signature · 1 line
2.26.2