CC: kbuild-...@lists.01.org
TO: "Horatiu, Vultur," <horatiu.vul...@microchip.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 9a9f26e8f7ea300e8efffcae036dbef239be433a [4096/14131] bridge: mrp: 
Connect MRP API with the switchdev API
:::::: branch date: 3 days ago
:::::: commit date: 5 weeks ago
config: microblaze-randconfig-s032-20200601 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-243-gc100a7ab-dirty
        git checkout 9a9f26e8f7ea300e8efffcae036dbef239be433a
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=microblaze CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent 
configuration, needs CONFIG_CPU_BIG_ENDIAN
   net/bridge/br_mrp.c:86:18: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned short [usertype] @@     got 
restricted __be16 [usertype] @@
   net/bridge/br_mrp.c:86:18: sparse:     expected unsigned short [usertype]
   net/bridge/br_mrp.c:86:18: sparse:     got restricted __be16 [usertype]
   net/bridge/br_mrp.c:109:21: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned short [usertype] seq_id @@     
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:109:21: sparse:     expected unsigned short [usertype] 
>> seq_id
   net/bridge/br_mrp.c:109:21: sparse:     got restricted __be16 [usertype]
   net/bridge/br_mrp.c:130:19: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned short [usertype] prio @@     
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:130:19: sparse:     expected unsigned short [usertype] 
>> prio
   net/bridge/br_mrp.c:130:19: sparse:     got restricted __be16 [usertype]
   net/bridge/br_mrp.c:132:24: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned short [usertype] port_role @@   
  got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:132:24: sparse:     expected unsigned short [usertype] 
>> port_role
   net/bridge/br_mrp.c:132:24: sparse:     got restricted __be16 [usertype]
   net/bridge/br_mrp.c:133:20: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned short [usertype] state @@     
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:133:20: sparse:     expected unsigned short [usertype] 
>> state
   net/bridge/br_mrp.c:133:20: sparse:     got restricted __be16 [usertype]
   net/bridge/br_mrp.c:134:26: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned short [usertype] transitions @@ 
    got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:134:26: sparse:     expected unsigned short [usertype] 
>> transitions
   net/bridge/br_mrp.c:134:26: sparse:     got restricted __be16 [usertype]
   net/bridge/br_mrp.c:135:24: sparse: sparse: incorrect type in assignment 
(different base types) @@     expected unsigned int [usertype] timestamp @@     
got restricted __be32 [usertype] @@
>> net/bridge/br_mrp.c:135:24: sparse:     expected unsigned int [usertype] 
>> timestamp
>> net/bridge/br_mrp.c:135:24: sparse:     got restricted __be32 [usertype]
   net/bridge/br_mrp.c:234:23: sparse: sparse: incorrect type in argument 1 
(different modifiers) @@     expected struct list_head *entry @@     got struct 
list_head [noderef] * @@
   net/bridge/br_mrp.c:234:23: sparse:     expected struct list_head *entry
   net/bridge/br_mrp.c:234:23: sparse:     got struct list_head [noderef] *
   net/bridge/br_mrp.c:279:28: sparse: sparse: incorrect type in argument 1 
(different modifiers) @@     expected struct list_head *new @@     got struct 
list_head [noderef] * @@
   net/bridge/br_mrp.c:279:28: sparse:     expected struct list_head *new
   net/bridge/br_mrp.c:279:28: sparse:     got struct list_head [noderef] *
   net/bridge/br_mrp.c:279:40: sparse: sparse: incorrect type in argument 2 
(different modifiers) @@     expected struct list_head *head @@     got struct 
list_head [noderef] * @@
   net/bridge/br_mrp.c:279:40: sparse:     expected struct list_head *head
   net/bridge/br_mrp.c:279:40: sparse:     got struct list_head [noderef] *
   net/bridge/br_mrp.c:296:6: sparse: sparse: symbol 'br_mrp_port_del' was not 
declared. Should it be static?
   net/bridge/br_mrp.c:543:5: sparse: sparse: symbol 'br_mrp_process' was not 
declared. Should it be static?
   net/bridge/br_mrp.c:558:29: sparse: sparse: incorrect type in argument 1 
(different modifiers) @@     expected struct list_head const *head @@     got 
struct list_head [noderef] * @@
   net/bridge/br_mrp.c:558:29: sparse:     expected struct list_head const *head
   net/bridge/br_mrp.c:558:29: sparse:     got struct list_head [noderef] *
   net/bridge/br_mrp.c:556:6: sparse: sparse: symbol 'br_mrp_enabled' was not 
declared. Should it be static?

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9a9f26e8f7ea300e8efffcae036dbef239be433a
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 9a9f26e8f7ea300e8efffcae036dbef239be433a
vim +109 net/bridge/br_mrp.c

9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  101  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  102  static void 
br_mrp_skb_common(struct sk_buff *skb, struct br_mrp *mrp)
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  103  {
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  104   struct br_mrp_common_hdr *hdr;
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  105  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  106   br_mrp_skb_tlv(skb, 
BR_MRP_TLV_HEADER_COMMON, sizeof(*hdr));
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  107  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  108   hdr = skb_put(skb, 
sizeof(*hdr));
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26 @109   hdr->seq_id = 
cpu_to_be16(br_mrp_next_seq(mrp));
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  110   memset(hdr->domain, 0xff, 
MRP_DOMAIN_UUID_LENGTH);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  111  }
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  112  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  113  static struct sk_buff 
*br_mrp_alloc_test_skb(struct br_mrp *mrp,
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  114                                   
     struct net_bridge_port *p,
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  115                                   
     enum br_mrp_port_role_type port_role)
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  116  {
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  117   struct br_mrp_ring_test_hdr 
*hdr = NULL;
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  118   struct sk_buff *skb = NULL;
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  119  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  120   if (!p)
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  121           return NULL;
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  122  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  123   skb = br_mrp_skb_alloc(p, 
p->dev->dev_addr, mrp_test_dmac);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  124   if (!skb)
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  125           return NULL;
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  126  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  127   br_mrp_skb_tlv(skb, 
BR_MRP_TLV_HEADER_RING_TEST, sizeof(*hdr));
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  128   hdr = skb_put(skb, 
sizeof(*hdr));
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  129  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26 @130   hdr->prio = 
cpu_to_be16(MRP_DEFAULT_PRIO);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  131   ether_addr_copy(hdr->sa, 
p->br->dev->dev_addr);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26 @132   hdr->port_role = 
cpu_to_be16(port_role);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26 @133   hdr->state = 
cpu_to_be16(mrp->ring_state);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26 @134   hdr->transitions = 
cpu_to_be16(mrp->ring_transitions);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26 @135   hdr->timestamp = 
cpu_to_be32(jiffies_to_msecs(jiffies));
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  136  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  137   br_mrp_skb_common(skb, mrp);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  138   br_mrp_skb_tlv(skb, 
BR_MRP_TLV_HEADER_END, 0x0);
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  139  
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  140   return skb;
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  141  }
9a9f26e8f7ea30 Horatiu Vultur 2020-04-26  142  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to