gasket-driver/fix-for-backported-dma-buf-ns.patch
Chris Bradbury 80d4279a8b Accepting request 1086841 from home:chrBrd:branches:hardware
Rename patch to adhere to oS patching guidelines.

As source and patch files have been added to the package rather than 
being downloaded from GitHub it's worth adhering to the patching guidelines as 
specified here:
https://en.opensuse.org/openSUSE:Packaging_Patches_guidelines

OBS-URL: https://build.opensuse.org/request/show/1086841
OBS-URL: https://build.opensuse.org/package/show/hardware/gasket-driver?expand=0&rev=7
2023-05-12 22:45:43 +00:00

24 lines
648 B
Diff

From a87c105c14e826dafd4b25c36fa7c7c657a7ad03 Mon Sep 17 00:00:00 2001
From: hibby50 <hibby50@gmail.com>
Date: Thu, 20 Apr 2023 14:16:06 -0400
Subject: [PATCH] import DMA_BUF regardless of kernel version
---
src/gasket_page_table.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gasket_page_table.c b/src/gasket_page_table.c
index e81ab2b..0e768e0 100644
--- a/src/gasket_page_table.c
+++ b/src/gasket_page_table.c
@@ -53,9 +53,7 @@
#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"