Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752565AbdIVP5Z (ORCPT ); Fri, 22 Sep 2017 11:57:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39308 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbdIVP5Y (ORCPT ); Fri, 22 Sep 2017 11:57:24 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 063FF5F798 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dledford@redhat.com Message-ID: <1506095841.5172.1.camel@redhat.com> Subject: Re: [PATCH] RDMA/qedr: fix build error without ipv6 From: Doug Ledford To: Arnd Bergmann , Ram Amrani , Michal Kalderon , Ariel Elior , Sean Hefty , Hal Rosenstock Cc: "David S. Miller" , "Mintz, Yuval" , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 22 Sep 2017 11:57:21 -0400 In-Reply-To: <20170905145935.1578698-1-arnd@arndb.de> References: <20170905145935.1578698-1-arnd@arndb.de> Organization: Red Hat, Inc. Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 22 Sep 2017 15:57:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 26 On Tue, 2017-09-05 at 16:59 +0200, Arnd Bergmann wrote: > When CONFIG_IPV6 disabled, we run into a link error: > > drivers/infiniband/hw/qedr/qedr_iw_cm.o: In function > `qedr_addr6_resolve.isra.3': > qedr_iw_cm.c:(.text+0x4e0): undefined reference to > `ip6_route_output_flags' > > The ipv6 handling code is obviously not needed here, so this > adds a compile-time check for the Kconfig symbol in all three > places in the code that decide between ipv4 and ipv6. > > We don't have to worry about a link error wtih QEDR=y/IPV6=m, as > that configuration is already prohibited by CONFIG_INFINIBAND > depending on "m || IPV6 != m". > > Fixes: e411e0587e0d ("RDMA/qedr: Add iWARP connection management > functions") > Signed-off-by: Arnd Bergmann Thanks, applied to for-next area. -- Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD