condition: fix compile error on 2.6.31-rt

xt_condition.c:58:8: warning: type defaults to 'int' in declaration
of 'DECLARE_MUTEX'
This commit is contained in:
Jan Engelhardt
2009-09-12 02:12:16 +02:00
parent 26f25a43a9
commit 09bfb8496e

View File

@@ -55,7 +55,7 @@ struct condition_variable {
/* proc_lock is a user context only semaphore used for write access */
/* to the conditions' list. */
static DECLARE_MUTEX(proc_lock);
static struct semaphore proc_lock;
static LIST_HEAD(conditions_list);
static struct proc_dir_entry *proc_net_condition;
@@ -232,6 +232,7 @@ static int __init condition_mt_init(void)
{
int ret;
sema_init(&proc_lock, 1);
proc_net_condition = proc_mkdir(dir_name, init_net__proc_net);
if (proc_net_condition == NULL)
return -EACCES;