From: Roland Dreier Date: Tue, 30 Dec 2008 07:37:14 +0000 (-0800) Subject: RDMA/addr: Fix build breakage when IPv6 is disabled X-Git-Tag: v2.6.29-rc1~554^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c4ab6243f91cda62f22af2eb8a6c07590de37b1;p=pandora-kernel.git 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 --- Reading git-diff-tree failed