diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index 06da8273..1e9d5840 100644 --- a/drivers/gpu/drm/tegra/gem.c +++ b/drivers/gpu/drm/tegra/gem.c @@ -12,6 +12,7 @@ #include #include +#include #include #include @@ -21,6 +22,10 @@ #include "drm.h" #include "gem.h" +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0) +MODULE_IMPORT_NS(DMA_BUF); +#endif + static unsigned int __sgt_dma_count_chunks(struct sg_table *sgt) { dma_addr_t next = ~(dma_addr_t)0;