Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8909967ybi; Wed, 10 Jul 2019 01:28:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw05UdliRclPlcHELAg7y9h8H9fN94DNS/AtiORWhx8VsS2QHAoTAlQpRcx5F9SzdlETbsc X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr5418298pjp.47.1562747308394; Wed, 10 Jul 2019 01:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562747308; cv=none; d=google.com; s=arc-20160816; b=lMPM8TwrWcbtDHtx9Q/Gz5nMvoImwzu/NlefPcvJCgJcROzUDzGlBZ60oqqjpOAW5n g/CQzc3OE45ein9GsfkYrUhpDHP/55zkZ5pyVkUVwrE1wB1V2SF6WSMfSZ7436XTjynR yfOa7kM2BQKtLk8EctSpUpMKv3//ftlcpzKdfJ1yoPNBn7mJWJwSGTIe5ytSDQxufbn/ 2VUj1KC+AhVfBnFPiipC2gX6W5OL/JcTdRvbOiDF+2pA+jyQ3W5929QbynYXvhbGB4W+ CThRK/TDWaXx3KQQr4cZAUdK6JNsTBbSp2oDDmyPIr09EEZgBpLZSlHz596cZhe4yKpo 4TRw== 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 :message-id:date:subject:cc:to:from; bh=MLGElbhIUMiSd8ic/gulrF1Rc1KmA7jAmwC3Vo35Wsk=; b=LIeCLxYMx24LmDhZD0V73CGEkRSjrzcFzGOQoD8ElzOZ0IJ3N97vV5qsJ43O65Vx8D QUcz8VAcFWyrcTrw6+NqGUHrv6WN4Oa43wmNW6TltEm4P/WWZCSTDCRSlzzs2Amb3j8V 7KZCThPUQaj8KHSwdiBilRrrjCYKbBARgSEuS4MPhY0EAm0J4GpRvRaTUX7Dcb7SpIHA Z9LXdEkcZBYstd+dv/tYl4drepmu9ij+8E6f0Awx8RgAnfeUWhG+QPsfVEKMyBl1sV5K 3GkMEjcy2fWAS94menSvyFntdo7oZSB2AOqeR1nICGQNziRrT2O3lr3K2OCttNZmdPbF A9kg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o71si1748578pjb.8.2019.07.10.01.28.12; Wed, 10 Jul 2019 01:28:28 -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; 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 S1727506AbfGJIJB (ORCPT + 99 others); Wed, 10 Jul 2019 04:09:01 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58047 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbfGJIJB (ORCPT ); Wed, 10 Jul 2019 04:09:01 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1MZkxd-1hxa0r3rmR-00WjLd; Wed, 10 Jul 2019 10:08:43 +0200 From: Arnd Bergmann To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" Cc: Arnd Bergmann , wenxu , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net-next] netfilter: bridge: make NF_TABLES_BRIDGE tristate Date: Wed, 10 Jul 2019 10:08:20 +0200 Message-Id: <20190710080835.296696-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:elaCO7FAVfJUeOfRfMZ/SidxX1yW9xg/dTsF+eOAjseTF+HrSsh O/5o2LCc/QHx9+Dtt5SpGZwyRjo+WBMgSb1nYeNSEjJ5paUqiHeO5Lojl8GV/xsWVvNC+Vt d7lpKPCfcrQc7XOz4ar3qp5WIH4H5Zuanv+y7mswQGzCABkfTMOoe8W17qnU5aedb3udHHJ wb+VVASNuep4zWR8giESA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yMgse7shMA4=:LArjo+6xNg3a9zmYJxTdn+ HOvd4nwyv98ntXVQMrMy9NQhoqgh8gFs8IwouZ5KzTK863X7uTeiUXjRHp/JFEcboyNL1a1H8 HbNXt6gQQcr3Ca3esHg9nfmSUjxYFBNjnjP3DlbkMzQ4D6WzdLmWpG5gefkikmGjp8mcrP/Oo W+W9cndzhkGDuQ/byGySE2sE3a29dd5Sck5s3wMBHo0iuyH1kOC6Vv70VDSB+nfqC+TNpEksU g4Jxlhu83BHuX8mquA25nQfX7kaW0yr96SEgGbs9gdAiTTKoeC7Dhhtn3omqN0EXKuFCDCpBv tKtg8O7LTzxWnHCTD1hrgN07J1x1VDJm4hCfibRPuBz04zELQbpb7UpIG3fXAMuzQvG9LRP4j 2a26VnmKI1bpfy9T1x4ZapFRW4t4JhCjD5zYcfbkUJrf0pSyj+T6KEXaWBwt9JnAzoF669t4x uEifEPpGoOsEvw9rcAe4Jmz8xSujIqpdNJYFd9gRJCd5vIlmQBc9zw4xuksStC74Rj8UTetGo CEpUXLHkpKcokBWIT+avQVeuCep7sxZ7GdpxgwgR1A9PZei2EyeNBtmyV5Hv+igVWAZ+r5kRl GwgaTBqj1B0IHgcAaIa3qqR4BNYWPgGJ6eHuRzcJqgqQA9k/tI7xVahXkSGuZtwFNRRxmrzC6 XmSfJmz0CefDEhqPnCQDPzty208/msEKOarWMU/hx81rlZoiUc4KUErX7KFtnnUgBA0Acx4Vd ZGYexP96hzBT+6EqkaDrcVTEHIZ2cen3nHV5Gg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new nft_meta_bridge code fails to link as built-in when NF_TABLES is a loadable module. net/bridge/netfilter/nft_meta_bridge.o: In function `nft_meta_bridge_get_eval': nft_meta_bridge.c:(.text+0x1e8): undefined reference to `nft_meta_get_eval' net/bridge/netfilter/nft_meta_bridge.o: In function `nft_meta_bridge_get_init': nft_meta_bridge.c:(.text+0x468): undefined reference to `nft_meta_get_init' nft_meta_bridge.c:(.text+0x49c): undefined reference to `nft_parse_register' nft_meta_bridge.c:(.text+0x4cc): undefined reference to `nft_validate_register_store' net/bridge/netfilter/nft_meta_bridge.o: In function `nft_meta_bridge_module_exit': nft_meta_bridge.c:(.exit.text+0x14): undefined reference to `nft_unregister_expr' net/bridge/netfilter/nft_meta_bridge.o: In function `nft_meta_bridge_module_init': nft_meta_bridge.c:(.init.text+0x14): undefined reference to `nft_register_expr' net/bridge/netfilter/nft_meta_bridge.o:(.rodata+0x60): undefined reference to `nft_meta_get_dump' net/bridge/netfilter/nft_meta_bridge.o:(.rodata+0x88): undefined reference to `nft_meta_set_eval' This can happen because the NF_TABLES_BRIDGE dependency itself is just a 'bool'. Make the symbol a 'tristate' instead so Kconfig can propagate the dependencies correctly. Fixes: 30e103fe24de ("netfilter: nft_meta: move bridge meta keys into nft_meta_bridge") Signed-off-by: Arnd Bergmann --- net/bridge/netfilter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/netfilter/Kconfig b/net/bridge/netfilter/Kconfig index 154fa558bb90..d0c75d7ec074 100644 --- a/net/bridge/netfilter/Kconfig +++ b/net/bridge/netfilter/Kconfig @@ -6,7 +6,7 @@ menuconfig NF_TABLES_BRIDGE depends on BRIDGE && NETFILTER && NF_TABLES select NETFILTER_FAMILY_BRIDGE - bool "Ethernet Bridge nf_tables support" + tristate "Ethernet Bridge nf_tables support" if NF_TABLES_BRIDGE -- 2.20.0