From: Arnd Bergmann Date: Mon, 16 Dec 2024 09:33:40 +0000 (+0100) Subject: ALSA: compress_offload: import DMA_BUF namespace X-Git-Tag: v6.13-rc5~18^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ae40d5231732275c620a1c58c83884a979b6eb1;p=thirdparty%2Flinux.git ALSA: compress_offload: import DMA_BUF namespace The compression offload code cannot be in a loadable module unless it imports that namespace: ERROR: modpost: module snd-compress uses symbol dma_buf_get from namespace DMA_BUF, but does not import it. ERROR: modpost: module snd-compress uses symbol dma_buf_put from namespace DMA_BUF, but does not import it. ERROR: modpost: module snd-compress uses symbol dma_buf_fd from namespace DMA_BUF, but does not import it. Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode") Signed-off-by: Arnd Bergmann Acked-by: Shengjiu Wang Acked-by: Vinod Koul Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/20241216093410.377112-1-arnd@kernel.org --- diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 86ed2fbee0c86..ec2485c00e497 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -1247,6 +1247,7 @@ void snd_compr_task_finished(struct snd_compr_stream *stream, } EXPORT_SYMBOL_GPL(snd_compr_task_finished); +MODULE_IMPORT_NS("DMA_BUF"); #endif /* CONFIG_SND_COMPRESS_ACCEL */ static long snd_compr_ioctl(struct file *f, unsigned int cmd, unsigned long arg)