[source] xtables-addons: fix compile with kernel 4.14

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 16 13:18:31 PST 2017


hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/436fe56485f0027618602495df96796f66e51744

commit 436fe56485f0027618602495df96796f66e51744
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Nov 12 22:20:22 2017 +0100

    xtables-addons: fix compile with kernel 4.14
    
    This fixes a compile problems seen with kernel 4.14.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../utils/xtables-addons/patches/201-fix-lua-packetscript.patch  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/network/utils/xtables-addons/patches/201-fix-lua-packetscript.patch b/package/network/utils/xtables-addons/patches/201-fix-lua-packetscript.patch
index 7599684..a9fb796 100644
--- a/package/network/utils/xtables-addons/patches/201-fix-lua-packetscript.patch
+++ b/package/network/utils/xtables-addons/patches/201-fix-lua-packetscript.patch
@@ -1,5 +1,14 @@
 --- a/extensions/LUA/xt_LUA_target.c
 +++ b/extensions/LUA/xt_LUA_target.c
+@@ -19,7 +19,7 @@
+ #include <linux/kernel.h>
+ #include <linux/slab.h>
+ #include <linux/module.h>
+-#include <asm/uaccess.h>
++#include <linux/uaccess.h>
+ #include <net/ip.h>
+ #include <linux/netfilter/x_tables.h>
+ #include "xt_LUA.h"
 @@ -64,10 +64,10 @@ uint32_t  lua_state_refs[LUA_STATE_ARRAY
   * XT_CONTINUE inside the *register_lua_packet_lib* function.
   */



More information about the lede-commits mailing list