Fixes #14 and #15 by replacing the version-based check for DMA_BUF necessity. Solves incompatibility with backports in 5.1x.x (RedHat/Debian) kernels.

This commit is contained in:
Robert Zaage
2023-08-18 21:42:32 +02:00
committed by Michael Brooks
parent 8aca235839
commit 09385d4858

View File

@@ -53,7 +53,7 @@
#include <linux/version.h>
#include <linux/vmalloc.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0)
#if __has_include(<linux/dma-buf.h>)
MODULE_IMPORT_NS(DMA_BUF);
#endif