forked from MIrrors/gasket-driver
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:
committed by
Michael Brooks
parent
8aca235839
commit
09385d4858
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user