diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-12-30 02:37:14 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-12-30 02:37:14 -0500 |
commit | 2c4ab6243f91cda62f22af2eb8a6c07590de37b1 (patch) | |
tree | bb548c0e8fd5ecaad58a037843a4c81c4e587d01 /drivers/infiniband/Kconfig | |
parent | 541ef5cbb8e68189d47272cea52a69abc30259bc (diff) |
RDMA/addr: Fix build breakage when IPv6 is disabled
Commit 38617c64 ("RDMA/addr: Add support for translating IPv6
addresses") broke the build when CONFIG_IPV6=n, because the ib_addr
module unconditionally attempted to call ipv6_chk_addr() and other
IPv6 functions that are not defined when IPv6 is disabled. Fix this
by only building IPv6 support if CONFIG_IPV6 is turned on, and
add a Kconfig dependency to prevent the ib_addr code from being built
in when IPv6 is built modular.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/Kconfig')
-rw-r--r-- | drivers/infiniband/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index a5dc78ae62d..dd0db67bf8d 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig | |||
@@ -37,6 +37,7 @@ config INFINIBAND_USER_MEM | |||
37 | config INFINIBAND_ADDR_TRANS | 37 | config INFINIBAND_ADDR_TRANS |
38 | bool | 38 | bool |
39 | depends on INET | 39 | depends on INET |
40 | depends on !(INFINIBAND = y && IPV6 = m) | ||
40 | default y | 41 | default y |
41 | 42 | ||
42 | source "drivers/infiniband/hw/mthca/Kconfig" | 43 | source "drivers/infiniband/hw/mthca/Kconfig" |