From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH 1/2] [net-next] udp: provide udp{4,6}_lib_lookup for nf_socket_ipv{4,6} Date: Thu, 10 Nov 2016 00:08:23 +0100 Message-ID: <20161109230823.GA12171@salvia> References: <20161108132914.1495283-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , Eric Dumazet , linux-kernel@vger.kernel.org To: Arnd Bergmann Return-path: Received: from mail.us.es ([193.147.175.20]:54630 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753562AbcKIXIc (ORCPT ); Wed, 9 Nov 2016 18:08:32 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id E9B66A7CBB for ; Thu, 10 Nov 2016 00:08:30 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id D8D73A7D41 for ; Thu, 10 Nov 2016 00:08:30 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id C58C1A7D46 for ; Thu, 10 Nov 2016 00:08:28 +0100 (CET) Content-Disposition: inline In-Reply-To: <20161108132914.1495283-1-arnd@arndb.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Tue, Nov 08, 2016 at 02:28:18PM +0100, Arnd Bergmann wrote: > Since commit ca065d0cf80f ("udp: no longer use SLAB_DESTROY_BY_RCU") > the udp6_lib_lookup and udp4_lib_lookup functions are only > provided when it is actually possible to call them. > > However, moving the callers now caused a link error: > > net/built-in.o: In function `nf_sk_lookup_slow_v6': > (.text+0x131a39): undefined reference to `udp6_lib_lookup' > net/ipv4/netfilter/nf_socket_ipv4.o: In function `nf_sk_lookup_slow_v4': > nf_socket_ipv4.c:(.text.nf_sk_lookup_slow_v4+0x114): undefined reference to `udp4_lib_lookup' > > This extends the #ifdef so we also provide the functions when > CONFIG_NF_SOCKET_IPV4 or CONFIG_NF_SOCKET_IPV6, respectively > are set. Applied, thanks Arnd!