intel / ipu6-drivers

GNU General Public License v2.0
172 stars 52 forks source link

ipu-psys: MODULE_IMPORT_NS(DMA_BUF) for kernel 5.15 #77

Closed dmipx closed 1 year ago

dmipx commented 1 year ago

For kernel 5.15.49 i have modpost failure for ipu-psys:

ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_detach from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_vunmap from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_fd from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_put from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_get from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_unmap_attachment from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_map_attachment from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_export from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_attach from namespace DMA_BUF, but does not import it.
ERROR: modpost: module intel-ipu6-psys uses symbol dma_buf_vmap from namespace DMA_BUF, but does not import it.

resolution: for drivers/media/pci/intel/ipu-psys.c:

MODULE_DESCRIPTION("Intel ipu processing system driver");
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
MODULE_IMPORT_NS(DMA_BUF);
#endif

P.S. i'm not sure from which kernel version this should be done

dmipx commented 1 year ago

Thanks, it merged to iotg_ipu6 branch.