Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3936176imm; Mon, 8 Oct 2018 11:58:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV63kVCcVODGWJ2/q/lm327OexsCXH5DHslMFB4WhIkIsQBFTbdp45JXvpR57vyTGvyaxyW1S X-Received: by 2002:a17:902:b712:: with SMTP id d18-v6mr25270631pls.53.1539025122218; Mon, 08 Oct 2018 11:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539025122; cv=none; d=google.com; s=arc-20160816; b=MOO7vyt5eignRc4oNRlhS37sE7J5syO951r2J2pdMVF1U5V6z4KInh4pUnWdiw9cfE pt3+jzwwpkbit4+axweZLf3NeKdc/0wNwjeVX7OVe3wo4aIZkn5r40FGkkA00jgI34sK ZBMoY69E1B5aROXLgE4AWY0giTEikAU/3kQQYvcyj19wPS+uIY4PqhzF/ugQUqFqpA62 30AdbmR9JAy14i9JZNfaKxVsyM+rPUptmQHmFx1IqNVCTux+xR4Sd0bpS5pX/Acl0DBB bjIu8DqWfzzi+1aFBN2BwNlBH7UR1XrHk36rWPTqwPIocM/Kuuf/5k7GtasWUNOIZmZR 4YEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=14NqiWYIYDiUobLZJelI/ySloO2go/SIuH04/7kJbig=; b=zUuRQM3igQPWt64ffEbamZajcm22MJoQtUEQ2k+9dh4OMaX86WN7jU746WZLgP/XDk FixvuPYKHn7g6/tlWcmsm8v3EkgZ8o0o7hfDmaTDa4rW6dExYoTS/37+SM9mQF5Wnb53 cRL3tLQ4otTu8CBL9I2BROF5hC/QGtzE7uFeGriSczwOeKdkWfWQxsKtqQHZ9GMo5SpY 51fCQVN7kgV2FKN/ada3KjIfqwFLIqZDrVf+I/G0CsdYcjrtsXJlBnj+AwQ4egIvhA8l 2oHyIs4QZXXFL6gYlTBgI5MoLgdCUt7gmPxopee3Hrl+DDwDxyilpd12dLV4AI0XLRU/ vByA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tnHh5Uhd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6-v6si20922983pfc.253.2018.10.08.11.58.26; Mon, 08 Oct 2018 11:58:42 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=tnHh5Uhd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732293AbeJICE0 (ORCPT + 99 others); Mon, 8 Oct 2018 22:04:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:54170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726450AbeJICEX (ORCPT ); Mon, 8 Oct 2018 22:04:23 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64D652087D; Mon, 8 Oct 2018 18:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024675; bh=xoPIBr4+KQgPkxE50+BG05moma7QiJ5taCPucP6Ni6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tnHh5UhdUfgMTdVYDB6S6W2eejEXRfenKwNALsua30HgnQrWWZfJIEoROL7XTj1vC EUIDQVwmsU7XPljhQ0HmmndheGOwBzdJsxrkCjuoUNWmqXPkew3C+WoG3RoNVcQZhj nGplMSuB+KIdebMeEEW8D45UyVXN0G7JHMeQe/d4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Florian Westphal , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 4.18 094/168] netfilter: kconfig: nat related expression depend on nftables core Date: Mon, 8 Oct 2018 20:31:14 +0200 Message-Id: <20181008175623.633527345@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Westphal [ Upstream commit e0758412208960be9de11e6d2350c81ffd88410f ] NF_TABLES_IPV4 is now boolean so it is possible to set NF_TABLES=m NF_TABLES_IPV4=y NFT_CHAIN_NAT_IPV4=y which causes: nft_chain_nat_ipv4.c:(.text+0x6d): undefined reference to `nft_do_chain' Wrap NFT_CHAIN_NAT_IPV4 and related nat expressions with NF_TABLES to restore the dependency. Reported-by: Randy Dunlap Fixes: 02c7b25e5f54 ("netfilter: nf_tables: build-in filter chain type") Signed-off-by: Florian Westphal Acked-by: Randy Dunlap Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/ipv4/netfilter/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig @@ -122,6 +122,10 @@ config NF_NAT_IPV4 if NF_NAT_IPV4 +config NF_NAT_MASQUERADE_IPV4 + bool + +if NF_TABLES config NFT_CHAIN_NAT_IPV4 depends on NF_TABLES_IPV4 tristate "IPv4 nf_tables nat chain support" @@ -131,9 +135,6 @@ config NFT_CHAIN_NAT_IPV4 packet transformations such as the source, destination address and source and destination ports. -config NF_NAT_MASQUERADE_IPV4 - bool - config NFT_MASQ_IPV4 tristate "IPv4 masquerading support for nf_tables" depends on NF_TABLES_IPV4 @@ -151,6 +152,7 @@ config NFT_REDIR_IPV4 help This is the expression that provides IPv4 redirect support for nf_tables. +endif # NF_TABLES config NF_NAT_SNMP_BASIC tristate "Basic SNMP-ALG support"