aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-09-11 08:41:04 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-11 18:51:39 -0400
commit9feae56c0de65fdd8b1f64f376bb6578417d2b79 (patch)
tree84d3338d3813efffcee251b43af1ab234c9fcc18 /drivers/net/netxen
parent02571f89871e009b66fb5f8d5ae222e90e9f357c (diff)
netxen: build fix for INET=n
When CONFIG_INET is disabled, netxen has a build failure: netxen_nic_main.c:(.text+0x118fd1): undefined reference to `netxen_config_indev_addr' so make that function just an empty stub when CONFIG_INET=n. (not "inline" since that conflicts with other declarations of it) Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r--drivers/net/netxen/netxen_nic_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 81c24a7effcf..1399102fa4bd 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -2450,6 +2450,10 @@ static struct notifier_block netxen_netdev_cb = {
2450static struct notifier_block netxen_inetaddr_cb = { 2450static struct notifier_block netxen_inetaddr_cb = {
2451 .notifier_call = netxen_inetaddr_event, 2451 .notifier_call = netxen_inetaddr_event,
2452}; 2452};
2453#else
2454static void
2455netxen_config_indev_addr(struct net_device *dev, unsigned long event)
2456{ }
2453#endif 2457#endif
2454 2458
2455static struct pci_driver netxen_driver = { 2459static struct pci_driver netxen_driver = {