All of lore.kernel.org
 help / color / mirror / Atom feed
* [congwang:sch_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused variable 'q'
@ 2021-09-11 22:58 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-11 22:58 UTC (permalink / raw)
  To: Cong Wang; +Cc: kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [congwang:sch_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused variable 'q'
@ 2021-09-11 22:58 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-11 22:58 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-11 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 22:58 [congwang:sch_bpf 2/3] net/sched/sch_bpf.c:549:31: error: unused variable 'q' kernel test robot
2021-09-11 22:58 ` 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.