]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
fix ipt_IDLETIMER.c compilation
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 May 2007 21:01:41 +0000 (15:01 -0600)
committerTony Lindgren <tony@atomide.com>
Tue, 8 May 2007 22:24:25 +0000 (15:24 -0700)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
net/ipv4/netfilter/ipt_IDLETIMER.c

index 05f76345240fd7d39ca037c4e52bf100a82ae3d9..8e032e829baa2ee30a1712b7362f7a1ce316b60c 100644 (file)
@@ -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();