]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: mrp: Fix endian conversion and some other warnings
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sun, 28 Jun 2020 13:45:16 +0000 (15:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jun 2020 03:44:10 +0000 (20:44 -0700)
commiteb3269c90ef9a9c959270ff9f4488d1e7b43fcb8
tree6ed7f1f72873eab8f3a62d8e09bb95d0603180a2
parent45c61b31566f3366c32269b06d25ca155b14062f
bridge: mrp: Fix endian conversion and some other warnings

The following sparse warnings are fixed:
net/bridge/br_mrp.c:106:18: warning: incorrect type in assignment (different base types)
net/bridge/br_mrp.c:106:18:    expected unsigned short [usertype]
net/bridge/br_mrp.c:106:18:    got restricted __be16 [usertype]
net/bridge/br_mrp.c:281:23: warning: incorrect type in argument 1 (different modifiers)
net/bridge/br_mrp.c:281:23:    expected struct list_head *entry
net/bridge/br_mrp.c:281:23:    got struct list_head [noderef] *
net/bridge/br_mrp.c:332:28: warning: incorrect type in argument 1 (different modifiers)
net/bridge/br_mrp.c:332:28:    expected struct list_head *new
net/bridge/br_mrp.c:332:28:    got struct list_head [noderef] *
net/bridge/br_mrp.c:332:40: warning: incorrect type in argument 2 (different modifiers)
net/bridge/br_mrp.c:332:40:    expected struct list_head *head
net/bridge/br_mrp.c:332:40:    got struct list_head [noderef] *
net/bridge/br_mrp.c:682:29: warning: incorrect type in argument 1 (different modifiers)
net/bridge/br_mrp.c:682:29:    expected struct list_head const *head
net/bridge/br_mrp.c:682:29:    got struct list_head [noderef] *

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 4d7917e59f25fd ("bridge: mrp: Add MRP interface.")
Fixes: bfcdf4e362bc8d ("bridge: mrp: Extend bridge interface")
Fixes: 3bb98758960608 ("bridge: mrp: Connect MRP API with the switchdev API")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mrp.c
net/bridge/br_private.h
net/bridge/br_private_mrp.h