Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbYL2How (ORCPT ); Mon, 29 Dec 2008 02:44:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750862AbYL2Hor (ORCPT ); Mon, 29 Dec 2008 02:44:47 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:53579 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750818AbYL2Hoq (ORCPT ); Mon, 29 Dec 2008 02:44:46 -0500 Message-ID: <49587FDD.5000504@cn.fujitsu.com> Date: Mon, 29 Dec 2008 15:44:29 +0800 From: Wang Chen User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Randy Dunlap CC: Roland Dreier , Linux Kernel Mailing List , netdev@vger.kernel.org, sean.hefty@intel.com, Aleksey Senin Subject: Re: 2.6.28-git1 build failure References: <495853C6.6030000@oracle.com> In-Reply-To: <495853C6.6030000@oracle.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1405 Lines: 38 Randy Dunlap said the following on 2008-12-29 12:36: > drivers/built-in.o: In function `addr_resolve_remote': > addr.c:(.text+0x12fe75): undefined reference to `ip6_route_output' > drivers/built-in.o: In function `rdma_translate_ip': > (.text+0x1301a7): undefined reference to `ipv6_chk_addr' > drivers/built-in.o: In function `rdma_resolve_ip': > (.text+0x1303a9): undefined reference to `ipv6_chk_addr' > drivers/built-in.o: In function `rdma_resolve_ip': > (.text+0x13051b): undefined reference to `ip6_route_output' > > when CONFIG_IPV6=n. > Aleksey added IPv6 function to it but not change the Kconfig file. The following patch will temporarily fix this build failure. But IMHO separating the IPv4/IPv6 parts or using #ifdef would be better. Signed-off-by: Wang Chen --- diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index a5dc78a..9535e13 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -36,7 +36,7 @@ config INFINIBAND_USER_MEM config INFINIBAND_ADDR_TRANS bool - depends on INET + depends on INET && IPV6 default y source "drivers/infiniband/hw/mthca/Kconfig" -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/