All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:petrm_wip4 5/5] net/sched/cls_api.c:3886:20: warning: variable 'fl' set but not used
@ 2020-05-20 19:53 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-20 19:53 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]

tree:   https://github.com/jpirko/linux_mlxsw petrm_wip4
head:   762771d39235289a988465b66509744f59996c66
commit: 762771d39235289a988465b66509744f59996c66 [5/5] wip
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 762771d39235289a988465b66509744f59996c66
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

net/sched/cls_api.c: In function 'tcf_qevent_handle':
>> net/sched/cls_api.c:3886:20: warning: variable 'fl' set but not used [-Wunused-but-set-variable]
3886 |  struct tcf_proto *fl;
|                    ^~

vim +/fl +3886 net/sched/cls_api.c

  3880	
  3881	struct sk_buff *tcf_qevent_handle(struct tcf_qevent *qe, struct Qdisc *sch,
  3882					  struct sk_buff *skb, struct sk_buff **to_free,
  3883					  int *ret)
  3884	{
  3885		struct tcf_result cl_res;
> 3886		struct tcf_proto *fl;
  3887	
  3888		if (!qe->info.block_index)
  3889			return skb;
  3890	
  3891		fl = rcu_dereference_bh(qe->filter_chain);
  3892	
  3893		printk(KERN_WARNING "qevent\n");
  3894		switch (tcf_classify(skb, qe->filter_chain, &cl_res, false)) {
  3895		case TC_ACT_SHOT:
  3896			qdisc_qstats_drop(sch);
  3897			__qdisc_drop(skb, to_free);
  3898			*ret = __NET_XMIT_BYPASS;
  3899			return NULL;
  3900		case TC_ACT_STOLEN:
  3901		case TC_ACT_QUEUED:
  3902		case TC_ACT_TRAP:
  3903			__qdisc_drop(skb, to_free);
  3904			*ret = __NET_XMIT_STOLEN;
  3905			return NULL;
  3906		case TC_ACT_REDIRECT:
  3907			skb_do_redirect(skb);
  3908			*ret = __NET_XMIT_STOLEN;
  3909			return NULL;
  3910		}
  3911	
  3912		return skb;
  3913	}
  3914	EXPORT_SYMBOL(tcf_qevent_handle);
  3915	

---
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: 61415 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-20 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 19:53 [jpirko-mlxsw:petrm_wip4 5/5] net/sched/cls_api.c:3886:20: warning: variable 'fl' set but not used kbuild 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.