public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipt_IDLETIMER: worqueue fixes
@ 2007-01-08 10:15 Arnaud Patard
  2007-01-09 23:35 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Patard @ 2007-01-08 10:15 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

This patch fixes the build of ipt_ILDETIMER with current omap -git

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
---

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: idle_timer_workqueue.patch --]
[-- Type: text/x-patch, Size: 1313 bytes --]

---
 net/ipv4/netfilter/ipt_IDLETIMER.c |    7 	4 +	3 -	0 !
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: linux-omap-2.6/net/ipv4/netfilter/ipt_IDLETIMER.c
===================================================================
--- linux-omap-2.6.orig/net/ipv4/netfilter/ipt_IDLETIMER.c	2007-01-07 14:10:28.000000000 +0100
+++ linux-omap-2.6/net/ipv4/netfilter/ipt_IDLETIMER.c	2007-01-07 14:12:25.000000000 +0100
@@ -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_
 	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(co
 	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);
 

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipt_IDLETIMER: worqueue fixes
  2007-01-08 10:15 [PATCH] ipt_IDLETIMER: worqueue fixes Arnaud Patard
@ 2007-01-09 23:35 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-01-09 23:35 UTC (permalink / raw)
  To: Arnaud Patard; +Cc: linux-omap-open-source

* Arnaud Patard <arnaud.patard@rtp-net.org> [070108 02:21]:
> This patch fixes the build of ipt_ILDETIMER with current omap -git
> 
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> ---

> ---
>  net/ipv4/netfilter/ipt_IDLETIMER.c |    7 	4 +	3 -	0 !
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> Index: linux-omap-2.6/net/ipv4/netfilter/ipt_IDLETIMER.c
> ===================================================================
> --- linux-omap-2.6.orig/net/ipv4/netfilter/ipt_IDLETIMER.c	2007-01-07 14:10:28.000000000 +0100
> +++ linux-omap-2.6/net/ipv4/netfilter/ipt_IDLETIMER.c	2007-01-07 14:12:25.000000000 +0100
> @@ -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_
>  	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(co
>  	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);
>  

Pushing today.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-09 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 10:15 [PATCH] ipt_IDLETIMER: worqueue fixes Arnaud Patard
2007-01-09 23:35 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox