From: Tony Lindgren <tony@atomide.com>
To: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] ipt_IDLETIMER: worqueue fixes
Date: Tue, 9 Jan 2007 15:35:40 -0800 [thread overview]
Message-ID: <20070109233539.GS7384@atomide.com> (raw)
In-Reply-To: <85irfhese6.fsf@orfeo.duckcorp.org>
* 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
prev parent reply other threads:[~2007-01-09 23:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 10:15 [PATCH] ipt_IDLETIMER: worqueue fixes Arnaud Patard
2007-01-09 23:35 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070109233539.GS7384@atomide.com \
--to=tony@atomide.com \
--cc=arnaud.patard@rtp-net.org \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox