1 --- a/extensions/LUA/xt_LUA_target.c
2 +++ b/extensions/LUA/xt_LUA_target.c
3 @@ -64,10 +64,10 @@ uint32_t lua_state_refs[LUA_STATE_ARRAY
4 * XT_CONTINUE inside the *register_lua_packet_lib* function.
7 -spinlock_t lock = SPIN_LOCK_UNLOCKED;
8 +DEFINE_SPINLOCK(lock);
11 -lua_tg(struct sk_buff *pskb, const struct xt_target_param *par)
12 +lua_tg(struct sk_buff *pskb, const struct xt_action_param *par)
15 lua_packet_segment *p;
16 @@ -208,16 +208,16 @@ static bool load_script_into_state(uint3
17 * some workqueue initialization. So far this is done each time this function
18 * is called, subject to change.
22 lua_tg_checkentry(const struct xt_tgchk_param *par)
24 const struct xt_lua_tginfo *info = par->targinfo;
26 if (load_script_into_state(info->state_id, info->script_size, (char *)info->buf)) {
27 lua_state_refs[info->state_id]++;
36 --- a/extensions/LUA/lua/llimits.h
37 +++ b/extensions/LUA/lua/llimits.h
46 --- a/extensions/LUA/lua/lapi.c
47 +++ b/extensions/LUA/lua/lapi.c
49 ** See Copyright Notice in lua.h
58 --- a/extensions/LUA/lua/ltable.c
59 +++ b/extensions/LUA/lua/ltable.c
61 ** Hence even when the load factor reaches 100%, performance remains good.
68 --- a/extensions/LUA/lua/luaconf.h
69 +++ b/extensions/LUA/lua/luaconf.h
71 #if !defined(__KERNEL__)
79 #define SHRT_MAX 32767
81 @@ -637,6 +641,8 @@ union luai_Cast { double l_d; long l_l;
83 #if defined(__KERNEL__)
84 #undef LUA_USE_ULONGJMP
85 +#define setjmp __builtin_setjmp
86 +#define longjmp __builtin_longjmp
89 #if defined(__cplusplus)