• John Fastabend's avatar
    net: sched: cls_u32 add missing rcu_assign_pointer and annotation · a96366bf
    John Fastabend authored
    Add missing rcu_assign_pointer and missing  annotation for ht_up
    in cls_u32.c
    
    Caught by kbuild bot,
    
    >> net/sched/cls_u32.c:378:36: sparse: incorrect type in initializer (different address spaces)
       net/sched/cls_u32.c:378:36:    expected struct tc_u_hnode *ht
       net/sched/cls_u32.c:378:36:    got struct tc_u_hnode [noderef] <asn:4>*ht_up
    >> net/sched/cls_u32.c:610:54: sparse: incorrect type in argument 4 (different address spaces)
       net/sched/cls_u32.c:610:54:    expected struct tc_u_hnode *ht
       net/sched/cls_u32.c:610:54:    got struct tc_u_hnode [noderef] <asn:4>*ht_up
    >> net/sched/cls_u32.c:684:18: sparse: incorrect type in assignment (different address spaces)
       net/sched/cls_u32.c:684:18:    expected struct tc_u_hnode [noderef] <asn:4>*ht_up
       net/sched/cls_u32.c:684:18:    got struct tc_u_hnode *[assigned] ht
    >> net/sched/cls_u32.c:359:18: sparse: dereference of noderef expression
    Signed-off-by: default avatarJohn Fastabend <john.r.fastabend@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a96366bf
cls_u32.c 19.9 KB