All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:petrm_wip4 5/5] net/sched/cls_api.c:3894:37: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2020-05-20 23:46 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-20 23:46 UTC (permalink / raw
  To: kbuild-all

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

tree:   https://github.com/jpirko/linux_mlxsw petrm_wip4
head:   762771d39235289a988465b66509744f59996c66
commit: 762771d39235289a988465b66509744f59996c66 [5/5] wip
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-193-gb8fad4bc-dirty
        git checkout 762771d39235289a988465b66509744f59996c66
        # save the attached .config to linux build tree
        make C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

   net/sched/cls_api.c:270:22: sparse: sparse: incorrect type in assignment (different base types) @@    expected restricted __be16 [usertype] protocol @@    got icted __be16 [usertype] protocol @@
   net/sched/cls_api.c:270:22: sparse:    expected restricted __be16 [usertype] protocol
   net/sched/cls_api.c:270:22: sparse:    got unsigned int [usertype] protocol
   net/sched/cls_api.c:1734:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1734:16: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1734:16: sparse:    struct tcf_proto [noderef] <asn:4> *
   net/sched/cls_api.c:1834:20: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1834:20: sparse:    struct tcf_proto [noderef] <asn:4> *
   net/sched/cls_api.c:1834:20: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1796:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1796:25: sparse:    struct tcf_proto [noderef] <asn:4> *
   net/sched/cls_api.c:1796:25: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1816:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1816:16: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1816:16: sparse:    struct tcf_proto [noderef] <asn:4> *
   net/sched/cls_api.c:1881:25: sparse: sparse: restricted __be16 degrades to integer
   net/sched/cls_api.c:2556:50: sparse: sparse: restricted __be16 degrades to integer
>> net/sched/cls_api.c:3894:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@    expected struct tcf_proto const *tp @@    got struct tcf_pstruct tcf_proto const *tp @@
>> net/sched/cls_api.c:3894:37: sparse:    expected struct tcf_proto const *tp
   net/sched/cls_api.c:3894:37: sparse:    got struct tcf_proto [noderef] <asn:4> *filter_chain
   net/sched/cls_api.c:3785:9: sparse: sparse: context imbalance in 'tc_setup_flow_action' - different lock contexts for basic block

vim +3894 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: 73506 bytes --]

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

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-20 23:46 [jpirko-mlxsw:petrm_wip4 5/5] net/sched/cls_api.c:3894:37: sparse: sparse: incorrect type in argument 2 (different address spaces) 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.