* [dborkman:pr/bpf-tc-misc8 2/4] net/core/filter.c:2493:43: error: 'skb' undeclared
@ 2020-10-05 15:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-05 15:07 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2765 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git pr/bpf-tc-misc8
head: 9f6bfb1e3cd363d95d8a4c96ee962804152c3ad3
commit: 49800b34744f8b32eb67cfd7e269382f0a7dd16a [2/4] bpf: add redirect_peer helper
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git/commit/?id=49800b34744f8b32eb67cfd7e269382f0a7dd16a
git remote add dborkman https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git
git fetch --no-tags dborkman pr/bpf-tc-misc8
git checkout 49800b34744f8b32eb67cfd7e269382f0a7dd16a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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 >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from net/core/filter.c:20:
net/core/filter.c: In function '____bpf_redirect_peer':
>> net/core/filter.c:2493:43: error: 'skb' undeclared (first use in this function)
2493 | if (unlikely(flags || !skb_at_tc_ingress(skb)))
| ^~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
net/core/filter.c:2493:43: note: each undeclared identifier is reported only once for each function it appears in
2493 | if (unlikely(flags || !skb_at_tc_ingress(skb)))
| ^~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
vim +/skb +2493 net/core/filter.c
2488
2489 BPF_CALL_2(bpf_redirect_peer, u32, ifindex, u64, flags)
2490 {
2491 struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info);
2492
> 2493 if (unlikely(flags || !skb_at_tc_ingress(skb)))
2494 return TC_ACT_SHOT;
2495
2496 ri->flags = BPF_F_PEER;
2497 ri->tgt_index = ifindex;
2498
2499 return TC_ACT_REDIRECT;
2500 }
2501
---
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: 10941 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-05 15:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-05 15:07 [dborkman:pr/bpf-tc-misc8 2/4] net/core/filter.c:2493:43: error: 'skb' undeclared 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.