[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109120612.CtaI5w8b-lkp@intel.com>
Date: Sun, 12 Sep 2021 06:58:14 +0800
From: kernel test robot <lkp@...el.com>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [congwang:sch_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused
variable 'q'
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@...el.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
Download attachment ".config.gz" of type "application/gzip" (61224 bytes)
Powered by blists - more mailing lists