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>
This commit is contained in:
parent
02571f8987
commit
9feae56c0d
1 changed files with 4 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue