Skip to content

Commit 1ae40d5

Browse files
arndbtiwai
authored andcommitted
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: 0417715 ("ALSA: compress_offload: introduce accel operation mode") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Shengjiu Wang <[email protected]> Acked-by: Vinod Koul <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 7b26bc6 commit 1ae40d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/core/compress_offload.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ void snd_compr_task_finished(struct snd_compr_stream *stream,
12471247
}
12481248
EXPORT_SYMBOL_GPL(snd_compr_task_finished);
12491249

1250+
MODULE_IMPORT_NS("DMA_BUF");
12501251
#endif /* CONFIG_SND_COMPRESS_ACCEL */
12511252

12521253
static long snd_compr_ioctl(struct file *f, unsigned int cmd, unsigned long arg)

0 commit comments

Comments
 (0)