* net/netfilter/nf_nat_core.c:301:20: error: use of undeclared identifier 'NF_NAT_RANGE_PSID'
@ 2021-07-05 6:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-05 6:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3211 bytes --]
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210705-121124/Cole-Dishington/net-netfilter-Add-RFC-7597-Section-5-1-PSID-support/20210422-103613
head: 57403e99d76a5642b44e6b2ca8fa6207b7a1ce78
commit: 57403e99d76a5642b44e6b2ca8fa6207b7a1ce78 net: netfilter: Add RFC-7597 Section 5.1 PSID support
date: 2 hours ago
config: x86_64-randconfig-a016-20210705 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 3f9bf9f42a9043e20c6d2a74dd4f47a90a7e2b41)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/57403e99d76a5642b44e6b2ca8fa6207b7a1ce78
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210705-121124/Cole-Dishington/net-netfilter-Add-RFC-7597-Section-5-1-PSID-support/20210422-103613
git checkout 57403e99d76a5642b44e6b2ca8fa6207b7a1ce78
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash net/netfilter/
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/nf_nat_core.c:301:20: error: use of undeclared identifier 'NF_NAT_RANGE_PSID'
range->flags & NF_NAT_RANGE_PSID);
^
net/netfilter/nf_nat_core.c:598:7: error: use of undeclared identifier 'NF_NAT_RANGE_PSID'
NF_NAT_RANGE_PSID) &&
^
2 errors generated.
--
>> net/netfilter/nf_nat_masquerade.c:59:21: error: use of undeclared identifier 'NF_NAT_RANGE_PSID'
if (range->flags & NF_NAT_RANGE_PSID) {
^
1 error generated.
vim +/NF_NAT_RANGE_PSID +301 net/netfilter/nf_nat_core.c
282
283 /* If we source map this tuple so reply looks like reply_tuple, will
284 * that meet the constraints of range.
285 */
286 static int in_range(const struct nf_conntrack_tuple *tuple,
287 const struct nf_nat_range2 *range)
288 {
289 /* If we are supposed to map IPs, then we must be in the
290 * range specified, otherwise let this drag us onto a new src IP.
291 */
292 if (range->flags & NF_NAT_RANGE_MAP_IPS &&
293 !nf_nat_inet_in_range(tuple, range))
294 return 0;
295
296 if (!(range->flags & NF_NAT_RANGE_PROTO_SPECIFIED))
297 return 1;
298
299 return l4proto_in_range(tuple, NF_NAT_MANIP_SRC,
300 &range->min_proto, &range->max_proto, &range->base_proto,
> 301 range->flags & NF_NAT_RANGE_PSID);
302 }
303
---
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: 41449 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-05 6:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 6:38 net/netfilter/nf_nat_core.c:301:20: error: use of undeclared identifier 'NF_NAT_RANGE_PSID' kernel test robot
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.