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_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused variable 'q'
Date: Sun, 12 Sep 2021 06:58:14 +0800 [thread overview]
Message-ID: <202109120612.CtaI5w8b-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2206 bytes --]
tree: https://github.com/congwang/linux.git sch_bpf
head: f69c4127564dd6abacf52f9e5e2479de874493d9
commit: 0aa368fdb9976ab79a7764d425ba69a6b578271b [2/3] net_sched: introduce eBPF based Qdisc
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/0aa368fdb9976ab79a7764d425ba69a6b578271b
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sch_bpf
git checkout 0aa368fdb9976ab79a7764d425ba69a6b578271b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
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_class_stats':
>> net/sched/sch_bpf.c:549:31: error: unused variable 'q' [-Werror=unused-variable]
549 | struct sch_bpf_qdisc *q = qdisc_priv(sch);
| ^
cc1: all warnings being treated as errors
vim +/q +549 net/sched/sch_bpf.c
544
545 static int
546 sch_bpf_dump_class_stats(struct Qdisc *sch, unsigned long arg, struct gnet_dump *d)
547 {
548 struct sch_bpf_class *cl = (struct sch_bpf_class *)arg;
> 549 struct sch_bpf_qdisc *q = qdisc_priv(sch);
550 struct gnet_stats_queue qs = {
551 .drops = cl->drops,
552 .overlimits = cl->overlimits,
553 };
554 __u32 qlen = 0;
555
556 if (cl->qdisc)
557 qdisc_qstats_qlen_backlog(cl->qdisc, &qlen, &qs.backlog);
558 else
559 qlen = 0;
560
561 if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch),
562 d, NULL, &cl->bstats) < 0 ||
563 gnet_stats_copy_queue(d, NULL, &qs, qlen) < 0)
564 return -1;
565 return 0;
566 }
567
---
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: 61224 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [congwang:sch_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused variable 'q'
Date: Sun, 12 Sep 2021 06:58:14 +0800 [thread overview]
Message-ID: <202109120612.CtaI5w8b-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2263 bytes --]
tree: https://github.com/congwang/linux.git sch_bpf
head: f69c4127564dd6abacf52f9e5e2479de874493d9
commit: 0aa368fdb9976ab79a7764d425ba69a6b578271b [2/3] net_sched: introduce eBPF based Qdisc
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/0aa368fdb9976ab79a7764d425ba69a6b578271b
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sch_bpf
git checkout 0aa368fdb9976ab79a7764d425ba69a6b578271b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
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_class_stats':
>> net/sched/sch_bpf.c:549:31: error: unused variable 'q' [-Werror=unused-variable]
549 | struct sch_bpf_qdisc *q = qdisc_priv(sch);
| ^
cc1: all warnings being treated as errors
vim +/q +549 net/sched/sch_bpf.c
544
545 static int
546 sch_bpf_dump_class_stats(struct Qdisc *sch, unsigned long arg, struct gnet_dump *d)
547 {
548 struct sch_bpf_class *cl = (struct sch_bpf_class *)arg;
> 549 struct sch_bpf_qdisc *q = qdisc_priv(sch);
550 struct gnet_stats_queue qs = {
551 .drops = cl->drops,
552 .overlimits = cl->overlimits,
553 };
554 __u32 qlen = 0;
555
556 if (cl->qdisc)
557 qdisc_qstats_qlen_backlog(cl->qdisc, &qlen, &qs.backlog);
558 else
559 qlen = 0;
560
561 if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch),
562 d, NULL, &cl->bstats) < 0 ||
563 gnet_stats_copy_queue(d, NULL, &qs, qlen) < 0)
564 return -1;
565 return 0;
566 }
567
---
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: 61224 bytes --]
next reply other threads:[~2021-09-11 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-11 22:58 kernel test robot [this message]
2021-09-11 22:58 ` [congwang:sch_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused variable 'q' 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=202109120612.CtaI5w8b-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
/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.