Received: by 10.223.185.116 with SMTP id b49csp3572464wrg; Mon, 26 Feb 2018 02:16:57 -0800 (PST) X-Google-Smtp-Source: AG47ELsRESfW19D7QDYh3r2bV0/r4i3Z9bqDu6Jms+VRu5hfs/hKd/wS4q2RWEdf01WOzRF0n89/ X-Received: by 2002:a17:902:7c07:: with SMTP id x7-v6mr3784755pll.150.1519640217481; Mon, 26 Feb 2018 02:16:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519640217; cv=none; d=google.com; s=arc-20160816; b=BPZr0vB90hZFCi4M/17mxMZGvNEwUb9Nrj3xYigCrG+BxyhdOJCflAn1m1yQdASIL/ /KkTtE2P/qc5Qs8Y+Qec/0hv2p+kj9Ix5LRu9JUX1xBHJWEWVlVi/eJBxl+PgZ67P4ai N3YoqxnUCaRyWXEOp1wo9jh/GCG1ZkAH2c/rxMWmkLH0879N9f7mr+QYubGeLrdUIs/s 8PQIl1yV9XgCRJp1V28U6uWKO2O/x9Ndq7Ni8rTXOGWFxFuc+dRCuFby2rFXFGm82WYt K1yVeo+4cf2lDkgYqm7/A5e+k2ImhVw/Cu7eU9FYjoZc/H+dfpR+37upyuaiak7pmTMv xCMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=V3fSZj9PlzPEuFqlvxu1NKRxRchS7lvA22IZ13we+Kg=; b=KM050JgC2C1X2JdikVRyWtQbtlyUrN2/mHBITppxph2Cy44L/SZMmQdON78eCSzZFD iHT0Ldb2VA+51uFCbJj6Nxapv+f2uijuF5Z4m1VipJHsiYDhLEj1Dv4EPFltlelID7AS yzzTBgJywv7AUH8PlcDN59RRTnjW54y30Tn/crRz3gPCD0f0eLU6dJsB54RvGa4jEVtq q7Bbd5nnqAo+O6fnt1fRpgUYAzmpMeWSX4lZIGV83cPSX56RAHks7Gtxt1BVfmvvWaI1 LcrjYG51/PJ7jY4E3/P9AnERHFWVhyTmXr0/XbsfyKQF1gZYb1Kb838iRkPgjGpeqkhu Lmww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si2959911pge.465.2018.02.26.02.16.43; Mon, 26 Feb 2018 02:16:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbeBZKP6 (ORCPT + 99 others); Mon, 26 Feb 2018 05:15:58 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:32856 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751855AbeBZKPz (ORCPT ); Mon, 26 Feb 2018 05:15:55 -0500 Received: by mail-it0-f66.google.com with SMTP id w19so7434710ite.0 for ; Mon, 26 Feb 2018 02:15:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=V3fSZj9PlzPEuFqlvxu1NKRxRchS7lvA22IZ13we+Kg=; b=SfTRiG4rzmSvxitDsOoFXYdBxcMUusIpmwhZb3XXuOaOTKs1Q4wjBlVphUCJGNgnvL DLV4u1jvA+RItmiM3aVQJWdRTrn28M7EkJZ/a1fXykl6gLo4a2yPAMbxlwuZQmFQxX9u VaXwCx+7Trx+gXGjPPhJI8/+jrT/yoN5BXwIUeTsl4bLeGVvVgJo/SpSZN3BmoNaP7+R Y5Kn4XOaCeRjndvqsMRzCycbSZ0/9qfeuBxWTF1k8tFh7KtOvulrBuJLavDPJoQMeTuX z/vtyB5u/Co6qR1geRne70rtusgbgKsvsthJN1O//Jr8prV57uukBSEtH3hf+JilUL3u u4Pg== X-Gm-Message-State: APf1xPDbZtUHDmbZlnTRsAvFikzY142eXVz7ee4k4+YpOmYbjMB7gPN/ ozVrbm8oL0lzrdLFeKDIPvU1YqvGVZ0ZP33iCyJXOA== X-Received: by 10.36.111.4 with SMTP id x4mr12352724itb.51.1519640154449; Mon, 26 Feb 2018 02:15:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.53.233 with HTTP; Mon, 26 Feb 2018 02:15:14 -0800 (PST) In-Reply-To: <20180226094159.2519438-1-arnd@arndb.de> References: <20180226094159.2519438-1-arnd@arndb.de> From: Matteo Croce Date: Mon, 26 Feb 2018 11:15:14 +0100 Message-ID: Subject: Re: [PATCH] [net-next] ipvlan: fix building with modular IPV6 To: Arnd Bergmann Cc: "David S. Miller" , Mika Westerberg , netdev , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 10:41 AM, Arnd Bergmann wrote: > We no longer depend on IPV6, but that now causes a link error with > CONFIG_IPV6=m and CONFIG_IPVLAN=y: > > drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_queue_xmit': > ipvlan_core.c:(.text+0x1440): undefined reference to `ip6_route_output_flags' > drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_l3_rcv': > ipvlan_core.c:(.text+0x1818): undefined reference to `ip6_route_input_lookup' > > This adds back the dependency on IPV6, with the option of building without > IPV6, but forcing IPVLAN to be a module when IPV6 is a module. > > Fixes: 94333fac44d1 ("ipvlan: drop ipv6 dependency") > Signed-off-by: Arnd Bergmann > --- > drivers/net/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index d88b78a17440..08b85215c2be 100644 > --- a/drivers/net/Kconfig > +++ b/drivers/net/Kconfig > @@ -149,6 +149,7 @@ config MACVTAP > config IPVLAN > tristate "IP-VLAN support" > depends on INET > + depends on IPV6 || !IPV6 > depends on NETFILTER > select NET_L3_MASTER_DEV > ---help--- > -- > 2.9.0 > Sorry for that, the fix look very reasonable to me. Thanks, -- Matteo Croce per aspera ad upstream