mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
ACCOUNT: fix compile error on realtime kernels
xt_ACCOUNT.c:1040: error: implicit declaration of function 'init_MUTEX'
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
|
#include <linux/semaphore.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
#include <asm/uaccess.h>
|
#include <asm/uaccess.h>
|
||||||
@@ -1037,7 +1038,7 @@ static struct nf_sockopt_ops ipt_acc_sockopts = {
|
|||||||
|
|
||||||
static int __init account_tg_init(void)
|
static int __init account_tg_init(void)
|
||||||
{
|
{
|
||||||
init_MUTEX(&ipt_acc_userspace_mutex);
|
sema_init(&ipt_acc_userspace_mutex, 1);
|
||||||
|
|
||||||
if ((ipt_acc_tables =
|
if ((ipt_acc_tables =
|
||||||
kmalloc(ACCOUNT_MAX_TABLES *
|
kmalloc(ACCOUNT_MAX_TABLES *
|
||||||
|
Reference in New Issue
Block a user