* [linux-next:master 3800/3829] net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'?
@ 2021-05-20 4:52 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-05-20 4:52 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 6490 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9f24705effef8c3b9eca00d70594ef7e0364a6da
commit: 3b4f9530977112ddf177282e396d0715dc60b9a3 [3800/3829] fix up for merge involving nft_pipapo_lookup()
config: x86_64-randconfig-a001-20210520 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3b4f9530977112ddf177282e396d0715dc60b9a3
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 3b4f9530977112ddf177282e396d0715dc60b9a3
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
net/netfilter/nft_set_pipapo_avx2.c: In function 'nft_pipapo_avx2_lookup':
>> net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'? [-Werror=implicit-function-declaration]
1135 | return nft_pipapo_lookup(net, set, key, ext);
| ^~~~~~~~~~~~~~~~~
| nft_pipapo_avx2_lookup
cc1: some warnings being treated as errors
vim +1135 net/netfilter/nft_set_pipapo_avx2.c
7400b063969bdca Stefano Brivio 2020-03-07 1107
7400b063969bdca Stefano Brivio 2020-03-07 1108 /**
7400b063969bdca Stefano Brivio 2020-03-07 1109 * nft_pipapo_avx2_lookup() - Lookup function for AVX2 implementation
7400b063969bdca Stefano Brivio 2020-03-07 1110 * @net: Network namespace
7400b063969bdca Stefano Brivio 2020-03-07 1111 * @set: nftables API set representation
7400b063969bdca Stefano Brivio 2020-03-07 1112 * @elem: nftables API element representation containing key data
7400b063969bdca Stefano Brivio 2020-03-07 1113 * @ext: nftables API extension pointer, filled with matching reference
7400b063969bdca Stefano Brivio 2020-03-07 1114 *
7400b063969bdca Stefano Brivio 2020-03-07 1115 * For more details, see DOC: Theory of Operation in nft_set_pipapo.c.
7400b063969bdca Stefano Brivio 2020-03-07 1116 *
7400b063969bdca Stefano Brivio 2020-03-07 1117 * This implementation exploits the repetitive characteristic of the algorithm
7400b063969bdca Stefano Brivio 2020-03-07 1118 * to provide a fast, vectorised version using the AVX2 SIMD instruction set.
7400b063969bdca Stefano Brivio 2020-03-07 1119 *
7400b063969bdca Stefano Brivio 2020-03-07 1120 * Return: true on match, false otherwise.
7400b063969bdca Stefano Brivio 2020-03-07 1121 */
7400b063969bdca Stefano Brivio 2020-03-07 1122 bool nft_pipapo_avx2_lookup(const struct net *net, const struct nft_set *set,
7400b063969bdca Stefano Brivio 2020-03-07 1123 const u32 *key, const struct nft_set_ext **ext)
7400b063969bdca Stefano Brivio 2020-03-07 1124 {
7400b063969bdca Stefano Brivio 2020-03-07 1125 struct nft_pipapo *priv = nft_set_priv(set);
7400b063969bdca Stefano Brivio 2020-03-07 1126 unsigned long *res, *fill, *scratch;
7400b063969bdca Stefano Brivio 2020-03-07 1127 u8 genmask = nft_genmask_cur(net);
7400b063969bdca Stefano Brivio 2020-03-07 1128 const u8 *rp = (const u8 *)key;
7400b063969bdca Stefano Brivio 2020-03-07 1129 struct nft_pipapo_match *m;
7400b063969bdca Stefano Brivio 2020-03-07 1130 struct nft_pipapo_field *f;
7400b063969bdca Stefano Brivio 2020-03-07 1131 bool map_index;
7400b063969bdca Stefano Brivio 2020-03-07 1132 int i, ret = 0;
7400b063969bdca Stefano Brivio 2020-03-07 1133
f0b3d338064e1fe Stefano Brivio 2021-05-10 1134 if (unlikely(!irq_fpu_usable()))
f0b3d338064e1fe Stefano Brivio 2021-05-10 @1135 return nft_pipapo_lookup(net, set, key, ext);
f0b3d338064e1fe Stefano Brivio 2021-05-10 1136
7400b063969bdca Stefano Brivio 2020-03-07 1137 m = rcu_dereference(priv->match);
7400b063969bdca Stefano Brivio 2020-03-07 1138
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1139 /* This also protects access to all data related to scratch maps.
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1140 *
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1141 * Note that we don't need a valid MXCSR state for any of the
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1142 * operations we use here, so pass 0 as mask and spare a LDMXCSR
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1143 * instruction.
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1144 */
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1145 kernel_fpu_begin_mask(0);
7400b063969bdca Stefano Brivio 2020-03-07 1146
7400b063969bdca Stefano Brivio 2020-03-07 1147 scratch = *raw_cpu_ptr(m->scratch_aligned);
7400b063969bdca Stefano Brivio 2020-03-07 1148 if (unlikely(!scratch)) {
7400b063969bdca Stefano Brivio 2020-03-07 1149 kernel_fpu_end();
7400b063969bdca Stefano Brivio 2020-03-07 1150 return false;
7400b063969bdca Stefano Brivio 2020-03-07 1151 }
7400b063969bdca Stefano Brivio 2020-03-07 1152 map_index = raw_cpu_read(nft_pipapo_avx2_scratch_index);
7400b063969bdca Stefano Brivio 2020-03-07 1153
7400b063969bdca Stefano Brivio 2020-03-07 1154 res = scratch + (map_index ? m->bsize_max : 0);
7400b063969bdca Stefano Brivio 2020-03-07 1155 fill = scratch + (map_index ? 0 : m->bsize_max);
7400b063969bdca Stefano Brivio 2020-03-07 1156
7400b063969bdca Stefano Brivio 2020-03-07 1157 /* Starting map doesn't need to be set for this implementation */
7400b063969bdca Stefano Brivio 2020-03-07 1158
7400b063969bdca Stefano Brivio 2020-03-07 1159 nft_pipapo_avx2_prepare();
7400b063969bdca Stefano Brivio 2020-03-07 1160
7400b063969bdca Stefano Brivio 2020-03-07 1161 next_match:
7400b063969bdca Stefano Brivio 2020-03-07 1162 nft_pipapo_for_each_field(f, i, m) {
7400b063969bdca Stefano Brivio 2020-03-07 1163 bool last = i == m->field_count - 1, first = !i;
7400b063969bdca Stefano Brivio 2020-03-07 1164
:::::: The code at line 1135 was first introduced by commit
:::::: f0b3d338064e1fe7531f0d2977e35f3b334abfb4 netfilter: nft_set_pipapo_avx2: Add irq_fpu_usable() check, fallback to non-AVX2 version
:::::: TO: Stefano Brivio <sbrivio@redhat.com>
:::::: CC: Pablo Neira Ayuso <pablo@netfilter.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39031 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [linux-next:master 3800/3829] net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'?
@ 2021-05-20 4:52 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-05-20 4:52 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 6588 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9f24705effef8c3b9eca00d70594ef7e0364a6da
commit: 3b4f9530977112ddf177282e396d0715dc60b9a3 [3800/3829] fix up for merge involving nft_pipapo_lookup()
config: x86_64-randconfig-a001-20210520 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3b4f9530977112ddf177282e396d0715dc60b9a3
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 3b4f9530977112ddf177282e396d0715dc60b9a3
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
net/netfilter/nft_set_pipapo_avx2.c: In function 'nft_pipapo_avx2_lookup':
>> net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'? [-Werror=implicit-function-declaration]
1135 | return nft_pipapo_lookup(net, set, key, ext);
| ^~~~~~~~~~~~~~~~~
| nft_pipapo_avx2_lookup
cc1: some warnings being treated as errors
vim +1135 net/netfilter/nft_set_pipapo_avx2.c
7400b063969bdca Stefano Brivio 2020-03-07 1107
7400b063969bdca Stefano Brivio 2020-03-07 1108 /**
7400b063969bdca Stefano Brivio 2020-03-07 1109 * nft_pipapo_avx2_lookup() - Lookup function for AVX2 implementation
7400b063969bdca Stefano Brivio 2020-03-07 1110 * @net: Network namespace
7400b063969bdca Stefano Brivio 2020-03-07 1111 * @set: nftables API set representation
7400b063969bdca Stefano Brivio 2020-03-07 1112 * @elem: nftables API element representation containing key data
7400b063969bdca Stefano Brivio 2020-03-07 1113 * @ext: nftables API extension pointer, filled with matching reference
7400b063969bdca Stefano Brivio 2020-03-07 1114 *
7400b063969bdca Stefano Brivio 2020-03-07 1115 * For more details, see DOC: Theory of Operation in nft_set_pipapo.c.
7400b063969bdca Stefano Brivio 2020-03-07 1116 *
7400b063969bdca Stefano Brivio 2020-03-07 1117 * This implementation exploits the repetitive characteristic of the algorithm
7400b063969bdca Stefano Brivio 2020-03-07 1118 * to provide a fast, vectorised version using the AVX2 SIMD instruction set.
7400b063969bdca Stefano Brivio 2020-03-07 1119 *
7400b063969bdca Stefano Brivio 2020-03-07 1120 * Return: true on match, false otherwise.
7400b063969bdca Stefano Brivio 2020-03-07 1121 */
7400b063969bdca Stefano Brivio 2020-03-07 1122 bool nft_pipapo_avx2_lookup(const struct net *net, const struct nft_set *set,
7400b063969bdca Stefano Brivio 2020-03-07 1123 const u32 *key, const struct nft_set_ext **ext)
7400b063969bdca Stefano Brivio 2020-03-07 1124 {
7400b063969bdca Stefano Brivio 2020-03-07 1125 struct nft_pipapo *priv = nft_set_priv(set);
7400b063969bdca Stefano Brivio 2020-03-07 1126 unsigned long *res, *fill, *scratch;
7400b063969bdca Stefano Brivio 2020-03-07 1127 u8 genmask = nft_genmask_cur(net);
7400b063969bdca Stefano Brivio 2020-03-07 1128 const u8 *rp = (const u8 *)key;
7400b063969bdca Stefano Brivio 2020-03-07 1129 struct nft_pipapo_match *m;
7400b063969bdca Stefano Brivio 2020-03-07 1130 struct nft_pipapo_field *f;
7400b063969bdca Stefano Brivio 2020-03-07 1131 bool map_index;
7400b063969bdca Stefano Brivio 2020-03-07 1132 int i, ret = 0;
7400b063969bdca Stefano Brivio 2020-03-07 1133
f0b3d338064e1fe Stefano Brivio 2021-05-10 1134 if (unlikely(!irq_fpu_usable()))
f0b3d338064e1fe Stefano Brivio 2021-05-10 @1135 return nft_pipapo_lookup(net, set, key, ext);
f0b3d338064e1fe Stefano Brivio 2021-05-10 1136
7400b063969bdca Stefano Brivio 2020-03-07 1137 m = rcu_dereference(priv->match);
7400b063969bdca Stefano Brivio 2020-03-07 1138
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1139 /* This also protects access to all data related to scratch maps.
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1140 *
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1141 * Note that we don't need a valid MXCSR state for any of the
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1142 * operations we use here, so pass 0 as mask and spare a LDMXCSR
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1143 * instruction.
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1144 */
0dc0f088e7314e0 Stefano Brivio 2021-05-10 1145 kernel_fpu_begin_mask(0);
7400b063969bdca Stefano Brivio 2020-03-07 1146
7400b063969bdca Stefano Brivio 2020-03-07 1147 scratch = *raw_cpu_ptr(m->scratch_aligned);
7400b063969bdca Stefano Brivio 2020-03-07 1148 if (unlikely(!scratch)) {
7400b063969bdca Stefano Brivio 2020-03-07 1149 kernel_fpu_end();
7400b063969bdca Stefano Brivio 2020-03-07 1150 return false;
7400b063969bdca Stefano Brivio 2020-03-07 1151 }
7400b063969bdca Stefano Brivio 2020-03-07 1152 map_index = raw_cpu_read(nft_pipapo_avx2_scratch_index);
7400b063969bdca Stefano Brivio 2020-03-07 1153
7400b063969bdca Stefano Brivio 2020-03-07 1154 res = scratch + (map_index ? m->bsize_max : 0);
7400b063969bdca Stefano Brivio 2020-03-07 1155 fill = scratch + (map_index ? 0 : m->bsize_max);
7400b063969bdca Stefano Brivio 2020-03-07 1156
7400b063969bdca Stefano Brivio 2020-03-07 1157 /* Starting map doesn't need to be set for this implementation */
7400b063969bdca Stefano Brivio 2020-03-07 1158
7400b063969bdca Stefano Brivio 2020-03-07 1159 nft_pipapo_avx2_prepare();
7400b063969bdca Stefano Brivio 2020-03-07 1160
7400b063969bdca Stefano Brivio 2020-03-07 1161 next_match:
7400b063969bdca Stefano Brivio 2020-03-07 1162 nft_pipapo_for_each_field(f, i, m) {
7400b063969bdca Stefano Brivio 2020-03-07 1163 bool last = i == m->field_count - 1, first = !i;
7400b063969bdca Stefano Brivio 2020-03-07 1164
:::::: The code at line 1135 was first introduced by commit
:::::: f0b3d338064e1fe7531f0d2977e35f3b334abfb4 netfilter: nft_set_pipapo_avx2: Add irq_fpu_usable() check, fallback to non-AVX2 version
:::::: TO: Stefano Brivio <sbrivio@redhat.com>
:::::: CC: Pablo Neira Ayuso <pablo@netfilter.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39031 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-next:master 3800/3829] net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'?
2021-05-20 4:52 ` kernel test robot
@ 2021-05-20 23:09 ` Stephen Rothwell
-1 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2021-05-20 23:09 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 3480 bytes --]
Hi all,
On Thu, 20 May 2021 12:52:05 +0800 kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: 9f24705effef8c3b9eca00d70594ef7e0364a6da
> commit: 3b4f9530977112ddf177282e396d0715dc60b9a3 [3800/3829] fix up for merge involving nft_pipapo_lookup()
> config: x86_64-randconfig-a001-20210520 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3b4f9530977112ddf177282e396d0715dc60b9a3
> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout 3b4f9530977112ddf177282e396d0715dc60b9a3
> # save the attached .config to linux build tree
> make W=1 ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> net/netfilter/nft_set_pipapo_avx2.c: In function 'nft_pipapo_avx2_lookup':
> >> net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'? [-Werror=implicit-function-declaration]
> 1135 | return nft_pipapo_lookup(net, set, key, ext);
> | ^~~~~~~~~~~~~~~~~
> | nft_pipapo_avx2_lookup
> cc1: some warnings being treated as errors
This is caused by an incomplete merge resolution I did. I will add the
following 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;
+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 rules, 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)
{
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [linux-next:master 3800/3829] net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'?
@ 2021-05-20 23:09 ` Stephen Rothwell
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2021-05-20 23:09 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3480 bytes --]
Hi all,
On Thu, 20 May 2021 12:52:05 +0800 kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: 9f24705effef8c3b9eca00d70594ef7e0364a6da
> commit: 3b4f9530977112ddf177282e396d0715dc60b9a3 [3800/3829] fix up for merge involving nft_pipapo_lookup()
> config: x86_64-randconfig-a001-20210520 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3b4f9530977112ddf177282e396d0715dc60b9a3
> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout 3b4f9530977112ddf177282e396d0715dc60b9a3
> # save the attached .config to linux build tree
> make W=1 ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> net/netfilter/nft_set_pipapo_avx2.c: In function 'nft_pipapo_avx2_lookup':
> >> net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'? [-Werror=implicit-function-declaration]
> 1135 | return nft_pipapo_lookup(net, set, key, ext);
> | ^~~~~~~~~~~~~~~~~
> | nft_pipapo_avx2_lookup
> cc1: some warnings being treated as errors
This is caused by an incomplete merge resolution I did. I will add the
following 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;
+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 rules, 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)
{
--
Cheers,
Stephen Rothwell
[-- Attachment #2: attachment.sig --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-20 23:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-20 4:52 [linux-next:master 3800/3829] net/netfilter/nft_set_pipapo_avx2.c:1135:10: error: implicit declaration of function 'nft_pipapo_lookup'; did you mean 'nft_pipapo_avx2_lookup'? kernel test robot
2021-05-20 4:52 ` kernel test robot
2021-05-20 23:09 ` Stephen Rothwell
2021-05-20 23:09 ` Stephen Rothwell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.