Skip to content

Commit

Permalink
Import DMA_BUF symbol namespace for kernels >= 5.16
Browse files Browse the repository at this point in the history
Needed since 16b0314aa746 upstream.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka authored and mbrooksx committed Feb 22, 2022
1 parent f047773 commit 5993718
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gasket_page_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
#include <linux/version.h>
#include <linux/vmalloc.h>

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0)
MODULE_IMPORT_NS(DMA_BUF);
#endif

#include "gasket_constants.h"
#include "gasket_core.h"

Expand Down

0 comments on commit 5993718

Please sign in to comment.