From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753189AbdJLTV0 (ORCPT ); Thu, 12 Oct 2017 15:21:26 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:55426 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900AbdJLTVY (ORCPT ); Thu, 12 Oct 2017 15:21:24 -0400 Date: Thu, 12 Oct 2017 12:21:24 -0700 (PDT) Message-Id: <20171012.122124.1754692727996077252.davem@davemloft.net> To: arnd@arndb.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [net-next] ip_tunnel: fix building with NET_IP_TUNNEL=m From: David Miller In-Reply-To: <20171011135546.3536829-1-arnd@arndb.de> References: <20171011135546.3536829-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 12 Oct 2017 12:21:24 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Wed, 11 Oct 2017 15:55:31 +0200 > When af_mpls is built-in but the tunnel support is a module, > we get a link failure: > > net/mpls/af_mpls.o: In function `mpls_init': > af_mpls.c:(.init.text+0xdc): undefined reference to `ip_tunnel_encap_add_ops' > > This adds a Kconfig statement to prevent the broken > configuration and force mpls to be a module as well in > this case. > > Fixes: bdc476413dcd ("ip_tunnel: add mpls over gre support") > Signed-off-by: Arnd Bergmann Applied, thanks Arnd.