diff options
author | Anish Bhatt <anish@chelsio.com> | 2014-10-15 07:07:23 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-15 08:28:59 +0400 |
commit | f42bb57c61fd21fb7e30a2b99dbeb1671666bc47 (patch) | |
tree | 6330fc33cd98a7c536aa41805ab00b844978c035 /drivers/scsi/cxgbi/libcxgbi.c | |
parent | 1bb60376cda108306818365b186450f154ede5f2 (diff) | |
download | linux-f42bb57c61fd21fb7e30a2b99dbeb1671666bc47.tar.xz |
cxgb4i : Fix -Wunused-function warning
A bunch of ipv6 related code is left on by default. While this causes no
compilation issues, there is no need to have this enabled by default. Guard
with an ipv6 check, which also takes care of a -Wunused-function warning.
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.c')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c index 6a2001d6b442..54fa6e0bc1bb 100644 --- a/drivers/scsi/cxgbi/libcxgbi.c +++ b/drivers/scsi/cxgbi/libcxgbi.c @@ -275,6 +275,7 @@ struct cxgbi_device *cxgbi_device_find_by_netdev_rcu(struct net_device *ndev, } EXPORT_SYMBOL_GPL(cxgbi_device_find_by_netdev_rcu); +#if IS_ENABLED(CONFIG_IPV6) static struct cxgbi_device *cxgbi_device_find_by_mac(struct net_device *ndev, int *port) { @@ -307,6 +308,7 @@ static struct cxgbi_device *cxgbi_device_find_by_mac(struct net_device *ndev, ndev, ndev->name); return NULL; } +#endif void cxgbi_hbas_remove(struct cxgbi_device *cdev) { |