dmx_usb_module: fix build against kernel 4.14
authorMatthias Schiffer <redacted>
Wed, 21 Feb 2018 23:56:05 +0000 (00:56 +0100)
committerMatthias Schiffer <redacted>
Thu, 1 Mar 2018 23:58:15 +0000 (00:58 +0100)
The change should also work fine with older kernels, as <linux/uaccess.h>
has existed for a long time, and it includes <asm/uaccess.h>.

Signed-off-by: Matthias Schiffer <redacted>
libs/dmx_usb_module/Makefile
libs/dmx_usb_module/patches/002-fix-build-4.14.patch [new file with mode: 0644]

index 4487437d3f88e5a5745ff476a770a405b6c916e8..8f7184067562d7da5e599b857ee1b4939b1391c7 100644 (file)
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=dmx_usb_module
 PKG_VERSION:=0.1.20130818
-PKG_RELEASE:=0.1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
diff --git a/libs/dmx_usb_module/patches/002-fix-build-4.14.patch b/libs/dmx_usb_module/patches/002-fix-build-4.14.patch
new file mode 100644 (file)
index 0000000..e3ae11e
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/dmx_usb.c
++++ b/dmx_usb.c
+@@ -20,7 +20,7 @@
+ #include <linux/module.h>
+ #include <linux/spinlock.h>
+ #include <linux/completion.h>
+-#include <asm/uaccess.h>
++#include <linux/uaccess.h>
+ #include <linux/usb.h>
+ #include <linux/version.h>
git clone https://git.99rst.org/PROJECT