diff mbox series

[v2] ALSA: compress_offload: import namespace DMA_BUF

Message ID 20241216055053.234914-1-shengjiu.wang@nxp.com (mailing list archive)
State New
Headers show
Series [v2] ALSA: compress_offload: import namespace DMA_BUF | expand

Commit Message

Shengjiu Wang Dec. 16, 2024, 5:50 a.m. UTC
Fix below warning:
WARNING: modpost: module snd-compress uses symbol dma_buf_put from namespace DMA_BUF, but does not import it.
WARNING: modpost: module snd-compress uses symbol dma_buf_fd from namespace DMA_BUF, but does not import it.
WARNING: modpost: module snd-compress uses symbol dma_buf_get from namespace DMA_BUF, but does not import it.

Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412150026.EMUdbO09-lkp@intel.com/
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
changes in v2:
- add Fixes tag

 sound/core/compress_offload.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index 8a14707a16bb..dadf074359ec 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -993,6 +993,8 @@  static int snd_compr_partial_drain(struct snd_compr_stream *stream)
 
 #if IS_ENABLED(CONFIG_SND_COMPRESS_ACCEL)
 
+MODULE_IMPORT_NS("DMA_BUF");
+
 static struct snd_compr_task_runtime *
 snd_compr_find_task(struct snd_compr_stream *stream, __u64 seqno)
 {