From: Paul Walmsley <paul@pwsan.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] fix ipt_IDLETIMER.c compilation
Date: Tue, 08 May 2007 15:01:41 -0600 [thread overview]
Message-ID: <20070508210156.312789620@pwsan.com> (raw)
In-Reply-To: 20070508210138.371687586@pwsan.com
[-- Attachment #1: fix-ipt-idletimer.patch --]
[-- Type: text/plain, Size: 1600 bytes --]
Update net/ipv4/netfilter/ipt_IDLETIMER.c to compile after recent
changes to include/linux/netdevice.h (commit
4e9cac2ba437fcb093c7417b1cd91a77ebd1756a). Compile-tested only.
CC net/ipv4/netfilter/ipt_IDLETIMER.o
net/ipv4/netfilter/ipt_IDLETIMER.c: In function 'utimer_notifier_call':
net/ipv4/netfilter/ipt_IDLETIMER.c:189: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
net/ipv4/netfilter/ipt_IDLETIMER.c: In function 'utimer_fini':
net/ipv4/netfilter/ipt_IDLETIMER.c:222: error: 'dev_base' undeclared (first use in this function)
net/ipv4/netfilter/ipt_IDLETIMER.c:222: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_IDLETIMER.c:222: error: for each function it appears in.)
net/ipv4/netfilter/ipt_IDLETIMER.c:222: error: 'struct net_device' has no member named 'next'
make[3]: *** [net/ipv4/netfilter/ipt_IDLETIMER.o] Error 1
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
net/ipv4/netfilter/ipt_IDLETIMER.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-omap-2.6/net/ipv4/netfilter/ipt_IDLETIMER.c
===================================================================
--- linux-omap-2.6.orig/net/ipv4/netfilter/ipt_IDLETIMER.c
+++ linux-omap-2.6/net/ipv4/netfilter/ipt_IDLETIMER.c
@@ -219,7 +219,7 @@ static void utimer_fini(void)
rtnl_lock();
unregister_netdevice_notifier(&utimer_notifier_block);
- for (dev = dev_base; dev; dev = dev->next)
+ for_each_netdev(dev)
utimer_notifier_call(&utimer_notifier_block,
NETDEV_DOWN, dev);
rtnl_unlock();
--
next parent reply other threads:[~2007-05-08 21:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070508210138.371687586@pwsan.com>
2007-05-08 21:01 ` Paul Walmsley [this message]
2007-05-08 21:40 ` [PATCH] fix ipt_IDLETIMER.c compilation Tony Lindgren
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=20070508210156.312789620@pwsan.com \
--to=paul@pwsan.com \
--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