From: Luis R. Rodriguez Date: Wed, 6 Jan 2010 02:42:35 +0000 (-0800) Subject: Fix compilation warning on iface.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0cc2fce3ad6c0ed3a852d107b0244121118fb26b;p=openwrt%2Fstaging%2Fblogic.git Fix compilation warning on iface.c This fixes this compilation warning: CC [M] /home/mcgrof/devel/compat-wireless-2.6/net/mac80211/iface.o /home/mcgrof/devel/compat-wireless-2.6/net/mac80211/iface.c: In function ‘ieee80211_stop’: /home/mcgrof/devel/compat-wireless-2.6/net/mac80211/iface.c:392: warning: statement with no effect /home/mcgrof/devel/compat-wireless-2.6/net/mac80211/iface.c:397: warning: statement with no effect Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.27.h b/include/linux/compat-2.6.27.h index ed10a6c479b6..3b29294c3dc8 100644 --- a/include/linux/compat-2.6.27.h +++ b/include/linux/compat-2.6.27.h @@ -45,8 +45,8 @@ bool pci_pme_capable(struct pci_dev *dev, pci_power_t state); /* * The net_device has a spin_lock on newer kernels, on older kernels we're out of luck */ -#define netif_addr_lock_bh -#define netif_addr_unlock_bh +#define netif_addr_lock_bh(dev) +#define netif_addr_unlock_bh(dev) /* * To port this properly we'd have to port warn_slowpath_null(),