Skip to content

Commit

Permalink
dmx_usb_module: fix build against kernel 4.14
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
neocturne committed Mar 1, 2018
1 parent dee7a82 commit 50cd1f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/dmx_usb_module/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions libs/dmx_usb_module/patches/002-fix-build-4.14.patch
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 50cd1f1

Please sign in to comment.