Skip to content

Commit

Permalink
Fixes #14 and #15 by replacing the version-based check for DMA_BUF ne…
Browse files Browse the repository at this point in the history
…cessity. Solves incompatibility with backports in 5.1x.x (RedHat/Debian) kernels.
  • Loading branch information
robertzaage authored and mbrooksx committed Sep 5, 2023
1 parent 8aca235 commit 09385d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gasket_page_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 09385d4

Please sign in to comment.