Commit 8d21797d authored by Anish Bhatt's avatar Anish Bhatt Committed by David S. Miller

libcxgbi/cxgb4i : Fix ipv6 build failure caught with randconfig

Previous guard of IS_ENABLED(CONFIG_IPV6) is not sufficient when cxgbi drivers
are built into kernel but ipv6 is not.

v2: Use Kconfig to disable compiling cxgbi built into kernel when ipv6 is
compiled as a module

Fixes: e81fbf6c ("libcxgbi:cxgb4i Guard ipv6 code with a config check")
Fixes: fc8d0590 ("libcxgbi: Add ipv6 api to driver")
Signed-off-by: default avatarAnish Bhatt <anish@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7b31b4de
config SCSI_CXGB3_ISCSI config SCSI_CXGB3_ISCSI
tristate "Chelsio T3 iSCSI support" tristate "Chelsio T3 iSCSI support"
depends on PCI && INET depends on PCI && INET && (IPV6 || IPV6=n)
select NETDEVICES select NETDEVICES
select ETHERNET select ETHERNET
select NET_VENDOR_CHELSIO select NET_VENDOR_CHELSIO
......
config SCSI_CXGB4_ISCSI config SCSI_CXGB4_ISCSI
tristate "Chelsio T4 iSCSI support" tristate "Chelsio T4 iSCSI support"
depends on PCI && INET depends on PCI && INET && (IPV6 || IPV6=n)
select NETDEVICES select NETDEVICES
select ETHERNET select ETHERNET
select NET_VENDOR_CHELSIO select NET_VENDOR_CHELSIO
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment