From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [dborkman:pr/bpf-tc-misc8 2/4] net/core/filter.c:2493:43: error: 'skb' undeclared
Date: Mon, 05 Oct 2020 23:07:38 +0800 [thread overview]
Message-ID: <202010052335.moGmdMrP-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2020-10-05 15:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202010052335.moGmdMrP-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.