]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipt_IDLETIMER: worqueue fixes
authorArnaud Patard <Rtp>
Tue, 9 Jan 2007 23:35:24 +0000 (15:35 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Jan 2007 23:35:24 +0000 (15:35 -0800)
This patch fixes the build of ipt_ILDETIMER with current omap -git

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
net/ipv4/netfilter/ipt_IDLETIMER.c

index 7fd85cc67efe0cdce9ea2823af215bc508c1453b..a493858450f334dcb10f41654f2b42057e7e3a10 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/netfilter_ipv4/ip_tables.h>
 #include <linux/netfilter_ipv4/ipt_IDLETIMER.h>
 #include <linux/kobject.h>
+#include <linux/workqueue.h>
 
 #if 0
 #define DEBUGP(format, args...) printk("%s:%s:" format, \
@@ -68,9 +69,9 @@ static void utimer_delete(struct utimer_t *timer)
        kfree(timer);
 }
 
-static void utimer_work(void * data)
+static void utimer_work(struct work_struct *work)
 {
-       struct utimer_t *timer = (struct utimer_t *) data;
+       struct utimer_t *timer = container_of(work, struct utimer_t, work);
        struct net_device *netdev;
 
        netdev = dev_get_by_name(timer->name);
@@ -110,7 +111,7 @@ static struct utimer_t *utimer_create(const char *name)
        timer->timer.function = utimer_expired;
        timer->timer.data = (unsigned long) timer;
 
-       INIT_WORK(&timer->work, utimer_work, timer);
+       INIT_WORK(&timer->work, utimer_work);
 
        DEBUGP("Created timer '%s'\n", timer->name);