diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2009-09-11 12:41:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-11 15:51:39 -0700 |
commit | 9feae56c0de65fdd8b1f64f376bb6578417d2b79 (patch) | |
tree | 84d3338d3813efffcee251b43af1ab234c9fcc18 /drivers/net/netxen | |
parent | 02571f89871e009b66fb5f8d5ae222e90e9f357c (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.c | 4 |
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 81c24a7effc..1399102fa4b 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 = { static struct notifier_block netxen_inetaddr_cb = { .notifier_call = netxen_inetaddr_event, }; +#else +static void +netxen_config_indev_addr(struct net_device *dev, unsigned long event) +{ } #endif static struct pci_driver netxen_driver = { |