Initial commit
This commit is contained in:
30
0002-Update-gasket_page_table.c-Fix-MODULE_IMPORT_NS.patch
Normal file
30
0002-Update-gasket_page_table.c-Fix-MODULE_IMPORT_NS.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From 5c44ecd24c80b15a32381148ecb923a6ed313f89 Mon Sep 17 00:00:00 2001
|
||||
From: Gergely Szell <sethyx@gmail.com>
|
||||
Date: Sun, 20 Jul 2025 10:03:55 +0200
|
||||
Subject: [PATCH 2/2] Update gasket_page_table.c: Fix MODULE_IMPORT_NS
|
||||
|
||||
---
|
||||
src/gasket_page_table.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gasket_page_table.c b/src/gasket_page_table.c
|
||||
index c9067cb..1c4705e 100644
|
||||
--- a/src/gasket_page_table.c
|
||||
+++ b/src/gasket_page_table.c
|
||||
@@ -54,8 +54,12 @@
|
||||
#include <linux/vmalloc.h>
|
||||
|
||||
#if __has_include(<linux/dma-buf.h>)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)
|
||||
MODULE_IMPORT_NS(DMA_BUF);
|
||||
-#endif
|
||||
+#else
|
||||
+MODULE_IMPORT_NS("DMA_BUF");
|
||||
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0) */
|
||||
+#endif /* __has_include(<linux/dma-buf.h>) */
|
||||
|
||||
#include "gasket_constants.h"
|
||||
#include "gasket_core.h"
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Reference in New Issue
Block a user