From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [congwang:sch_bpf2 2/2] net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags'
Date: Sun, 12 Sep 2021 09:17:55 +0800 [thread overview]
Message-ID: <202109120952.NEHFcP6k-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2672 bytes --]
tree: https://github.com/congwang/linux.git sch_bpf2
head: 470563412d91de9179d50b7f311a39f1a46321ab
commit: 470563412d91de9179d50b7f311a39f1a46321ab [2/2] net_sched: introduce eBPF based Qdisc
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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://github.com/congwang/linux/commit/470563412d91de9179d50b7f311a39f1a46321ab
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sch_bpf2
git checkout 470563412d91de9179d50b7f311a39f1a46321ab
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
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/sched/sch_bpf.c: In function 'sch_bpf_dump':
>> net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags' [-Werror=unused-variable]
90 | u32 bpf_flags = 0;
| ^~~~~~~~~
net/sched/sch_bpf.c: In function 'sch_bpf_dump_class_stats':
net/sched/sch_bpf.c:535:31: error: unused variable 'q' [-Werror=unused-variable]
535 | struct sch_bpf_qdisc *q = qdisc_priv(sch);
| ^
cc1: all warnings being treated as errors
vim +/bpf_flags +90 net/sched/sch_bpf.c
85
86 static int sch_bpf_dump(struct Qdisc *sch, struct sk_buff *skb)
87 {
88 struct sch_bpf_qdisc *q = qdisc_priv(sch);
89 struct nlattr *opts;
> 90 u32 bpf_flags = 0;
91
92 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
93 if (!opts)
94 goto nla_put_failure;
95
96 if (nla_put_u32(skb, TCA_SCH_BPF_MODE, q->mode))
97 goto nla_put_failure;
98
99 if (sch_bpf_dump_prog(&q->enqueue_prog, skb, TCA_SCH_BPF_ENQUEUE_PROG_NAME,
100 TCA_SCH_BPF_ENQUEUE_PROG_ID, TCA_SCH_BPF_ENQUEUE_PROG_TAG))
101 goto nla_put_failure;
102 if (sch_bpf_dump_prog(&q->dequeue_prog, skb, TCA_SCH_BPF_DEQUEUE_PROG_NAME,
103 TCA_SCH_BPF_DEQUEUE_PROG_ID, TCA_SCH_BPF_DEQUEUE_PROG_TAG))
104 goto nla_put_failure;
105
106 return nla_nest_end(skb, opts);
107
108 nla_put_failure:
109 return -1;
110 }
111
---
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: 73936 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [congwang:sch_bpf2 2/2] net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags'
Date: Sun, 12 Sep 2021 09:17:55 +0800 [thread overview]
Message-ID: <202109120952.NEHFcP6k-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2606 bytes --]
tree: https://github.com/congwang/linux.git sch_bpf2
head: 470563412d91de9179d50b7f311a39f1a46321ab
commit: 470563412d91de9179d50b7f311a39f1a46321ab [2/2] net_sched: introduce eBPF based Qdisc
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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://github.com/congwang/linux/commit/470563412d91de9179d50b7f311a39f1a46321ab
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sch_bpf2
git checkout 470563412d91de9179d50b7f311a39f1a46321ab
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
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/sched/sch_bpf.c: In function 'sch_bpf_dump':
>> net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags' [-Werror=unused-variable]
90 | u32 bpf_flags = 0;
| ^~~~~~~~~
net/sched/sch_bpf.c: In function 'sch_bpf_dump_class_stats':
net/sched/sch_bpf.c:535:31: error: unused variable 'q' [-Werror=unused-variable]
535 | struct sch_bpf_qdisc *q = qdisc_priv(sch);
| ^
cc1: all warnings being treated as errors
vim +/bpf_flags +90 net/sched/sch_bpf.c
85
86 static int sch_bpf_dump(struct Qdisc *sch, struct sk_buff *skb)
87 {
88 struct sch_bpf_qdisc *q = qdisc_priv(sch);
89 struct nlattr *opts;
> 90 u32 bpf_flags = 0;
91
92 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
93 if (!opts)
94 goto nla_put_failure;
95
96 if (nla_put_u32(skb, TCA_SCH_BPF_MODE, q->mode))
97 goto nla_put_failure;
98
99 if (sch_bpf_dump_prog(&q->enqueue_prog, skb, TCA_SCH_BPF_ENQUEUE_PROG_NAME,
100 TCA_SCH_BPF_ENQUEUE_PROG_ID, TCA_SCH_BPF_ENQUEUE_PROG_TAG))
101 goto nla_put_failure;
102 if (sch_bpf_dump_prog(&q->dequeue_prog, skb, TCA_SCH_BPF_DEQUEUE_PROG_NAME,
103 TCA_SCH_BPF_DEQUEUE_PROG_ID, TCA_SCH_BPF_DEQUEUE_PROG_TAG))
104 goto nla_put_failure;
105
106 return nla_nest_end(skb, opts);
107
108 nla_put_failure:
109 return -1;
110 }
111
---
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: 73936 bytes --]
next reply other threads:[~2021-09-12 1:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-12 1:17 kernel test robot [this message]
2021-09-12 1:17 ` [congwang:sch_bpf2 2/2] net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-09-12 9:04 kernel test robot
2021-09-12 9:04 ` kernel test robot
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=202109120952.NEHFcP6k-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.