]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
libcxgbi/cxgb4i : Fix ipv6 build failure caught with randconfig
authorAnish Bhatt <anish@chelsio.com>
Wed, 13 Aug 2014 05:38:26 +0000 (22:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 03:04:47 +0000 (20:04 -0700)
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: e81fbf6cd652 ("libcxgbi:cxgb4i Guard ipv6 code with a config check")
Fixes: fc8d0590d914 ("libcxgbi: Add ipv6 api to driver")
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/cxgbi/cxgb3i/Kconfig
drivers/scsi/cxgbi/cxgb4i/Kconfig

index 6bbc36fbd6ecc4d642de5705a2c95191d39161f6..e4603985dce372da6107664d0f513db412f28615 100644 (file)
@@ -1,6 +1,6 @@
 config SCSI_CXGB3_ISCSI
        tristate "Chelsio T3 iSCSI support"
-       depends on PCI && INET
+       depends on PCI && INET && (IPV6 || IPV6=n)
        select NETDEVICES
        select ETHERNET
        select NET_VENDOR_CHELSIO
index 16b2c7d26617db2ed9c3f2eb119fcb0bff446c2a..8c4e423037b6ebd1b019c2a76ef3453a173b7c97 100644 (file)
@@ -1,6 +1,6 @@
 config SCSI_CXGB4_ISCSI
        tristate "Chelsio T4 iSCSI support"
-       depends on PCI && INET
+       depends on PCI && INET && (IPV6 || IPV6=n)
        select NETDEVICES
        select ETHERNET
        select NET_VENDOR_CHELSIO