Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1287778pxj; Fri, 21 May 2021 10:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdJgWde0a9/VGM6UMknX0Dd0oGBphoHAJcG4OWc9hnMOMoDueIZQBqZQypJymSxoKKVwm8 X-Received: by 2002:a05:6e02:8e3:: with SMTP id n3mr8990553ilt.115.1621618167189; Fri, 21 May 2021 10:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621618167; cv=none; d=google.com; s=arc-20160816; b=MXTYI+6YHsPtkfPHE4bduZ2Wyb0C0gsGFLG5EQqDdLsrzdlJi0mEvK7LmoKxwUlML0 1s/q66J2baevdi96pSGaAGLwPWTn+aDE8FrJF8ljGO45A9qKdKHEgki/ETQ0cJuN0kYt WnJ4YQuvTRDxC3g6zpFkzKWGd4rG2H5LNdJE1lLSlfIWqM4UZmTuNKAUtAnn7XYLgkrC HGPaHCFYYRYVIhPuwLiRug0cvuVCNsMZxV2c3dGuuscJZ+2xGHdIAXjwW4W2jpGejsrc PtmGw+MY2gSmE1aVfVZbfNL0Hy3+xa+9rJfw/F3O0COoOILyYa792Qs8OyMwqESXbO9d EeJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=xJ8efDCy90QtvK61qKOn+JGxeviSH+DWdK8eqTZXtuU=; b=SPY3Ptxy6k+M3izdKt1MnEZXkOiobM+2vDgmGcWg8KrzcfrprqXgDaiNK9mKT5HLPv 5HVos/R2gwqpY4NEFXRgC33xnkMKMY1b4oWg33cSMYV5vh2qUd/atNVS9BkIBObNDn+J xAHLtpiOAFlSESj0s2V8hOEG3VmL6wEJP4yUEgZBaXsdqZqw7MOq1uD9ea/XHjH40RtK g6o1nGUBXb5y4BPB23J/Il06sh7KjAgyIcbqGdg77rBBGG+NyYc7J9uB3e2b2xUAs6c0 1ZBeeovJyISofmuubhnbFNLnlOLa3c5fOwux3OLbC+HD9DsMY4R0rUwpCcgNpirq2h9a ytFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rothwell.id.au header.s=201702 header.b=rte9g4vD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si5630368jam.64.2021.05.21.10.29.12; Fri, 21 May 2021 10:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rothwell.id.au header.s=201702 header.b=rte9g4vD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232984AbhETXJV (ORCPT + 99 others); Thu, 20 May 2021 19:09:21 -0400 Received: from gimli.rothwell.id.au ([103.230.158.156]:43701 "EHLO gimli.rothwell.id.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbhETXJU (ORCPT ); Thu, 20 May 2021 19:09:20 -0400 Received: from authenticated.rothwell.id.au (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.rothwell.id.au (Postfix) with ESMTPSA id 4FmQPj2vLxzyNq; Fri, 21 May 2021 09:07:52 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothwell.id.au; s=201702; t=1621552075; bh=Unlt47Kkfklu/HTssSugfEykbEe17Uyd/D0Lfbbb2+k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rte9g4vDv1SIhAY2TXQqiAjvNCXngdEjTSX/iqRQM8GKscZUv5oB6kK0BpJddFLXj YnVuBZT2gpViUYToYFFRsTyAiYlTy0fsCkho7MBa4fN10ZbTLMIGKfeV58IiQOkTGJ LE+lgByzbIzCjFa0DLaRLCTiOA/Lz2POWzYc/UC9IIRZwnWY9kk07vk3+R9hMDWm+w 4q3DooAxbEDLUboyx/whjOq1qFpZIFU4autj221iQ4a8pypd5WqczDTfshJsvg19Tk qYkEpBjAcSlXC8ZQlMqDLMXk38CkvGXxJPT0HsyyzEqBZjTRdsNUupAASizK/4RUxm MUHmCAoLgLbAg== Date: Fri, 21 May 2021 09:07:51 +1000 From: Stephen Rothwell To: Randy Dunlap Cc: akpm@linux-foundation.org, broonie@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-next@vger.kernel.org, mhocko@suse.cz, mm-commits@vger.kernel.org, sfr@canb.auug.org.au, "netdev@vger.kernel.org" , Stefano Brivio , netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: mmotm 2021-05-19-23-58 uploaded (net/netfilter/nft_set_pipapo_avx2.c) Message-ID: <20210521090751.51afa10f@elm.ozlabs.ibm.com> In-Reply-To: <3d718861-28bd-dd51-82d4-96b040aa1ab4@infradead.org> References: <20210520065918.KsmugQp47%akpm@linux-foundation.org> <3d718861-28bd-dd51-82d4-96b040aa1ab4@infradead.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/54qkpJW_btyh87AxEnT6H5P"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/54qkpJW_btyh87AxEnT6H5P Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Randy, On Thu, 20 May 2021 15:40:54 -0700 Randy Dunlap wro= te: > > on x86_64: > (from linux-next, not mmotm) Yeah, this is caused by a bad merge resolution by me. > ../net/netfilter/nft_set_pipapo_avx2.c: In function =E2=80=98nft_pipapo_a= vx2_lookup=E2=80=99: > ../net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declarati= on of function =E2=80=98nft_pipapo_lookup=E2=80=99; did you mean =E2=80=98n= ft_pipapo_avx2_lookup=E2=80=99? [-Werror=3Dimplicit-function-declaration] > return nft_pipapo_lookup(net, set, key, ext); > ^~~~~~~~~~~~~~~~~ I have added this to the merge resolution today: diff --git a/include/net/netfilter/nf_tables_core.h b/include/net/netfilter= /nf_tables_core.h index 789e9eadd76d..8652b2514e57 100644 --- a/include/net/netfilter/nf_tables_core.h +++ b/include/net/netfilter/nf_tables_core.h @@ -89,6 +89,8 @@ extern const struct nft_set_type nft_set_bitmap_type; extern const struct nft_set_type nft_set_pipapo_type; extern const struct nft_set_type nft_set_pipapo_avx2_type; =20 +bool nft_pipapo_lookup(const struct net *net, const struct nft_set *set, + const u32 *key, const struct nft_set_ext **ext); #ifdef CONFIG_RETPOLINE bool nft_rhash_lookup(const struct net *net, const struct nft_set *set, const u32 *key, const struct nft_set_ext **ext); @@ -101,8 +103,6 @@ bool nft_hash_lookup_fast(const struct net *net, const u32 *key, const struct nft_set_ext **ext); bool nft_hash_lookup(const struct net *net, const struct nft_set *set, const u32 *key, const struct nft_set_ext **ext); -bool nft_pipapo_lookup(const struct net *net, const struct nft_set *set, - const u32 *key, const struct nft_set_ext **ext); bool nft_set_do_lookup(const struct net *net, const struct nft_set *set, const u32 *key, const struct nft_set_ext **ext); #else diff --git a/net/netfilter/nft_set_pipapo.c b/net/netfilter/nft_set_pipapo.c index 9addc0b447f7..dce866d93fee 100644 --- a/net/netfilter/nft_set_pipapo.c +++ b/net/netfilter/nft_set_pipapo.c @@ -408,7 +408,6 @@ int pipapo_refill(unsigned long *map, int len, int rule= s, unsigned long *dst, * * Return: true on match, false otherwise. */ -INDIRECT_CALLABLE_SCOPE bool nft_pipapo_lookup(const struct net *net, const struct nft_set *set, const u32 *key, const struct nft_set_ext **ext) { It should apply on top of next-20210520 if you want to test it (I haven't tested it yet, but will later today). --=20 Cheers, Stephen Rothwell --Sig_/54qkpJW_btyh87AxEnT6H5P Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmCm68cACgkQAVBC80lX 0GwTEQf+I/lcXs8xFLj2V8fskUhUh0ml6V76sP1fAmL1MKzIL6W60YTCmIAFNLsj Ix6HLfIQTuEZz7JTqmJ3SCkrng4MBad0ml6zka+ZLs7VSvLgb1h2kK2WSjbMY/8k G9v3TG67ZZ30tV3IrItwQ13Z94TQnY7s4P1ZMqhGIuWjDah5XVXT3DOFCqwALGjq JhljLSOAyoynEfZyEzfaBVEN0Ktwao2ltV7o5igFHtGVsOPy8SiB1E5HV52gSLtk 2HQjHKqjseNCtPW6ys56iSxAJFODxf8L+/zyxqFzLC7fGqZzZa5AvRqEDo5ppvSg PmRNA60ZvTkE4+D3sbyafNO4TgvzMg== =B2VX -----END PGP SIGNATURE----- --Sig_/54qkpJW_btyh87AxEnT6H5P--