* [PATCH net] bridge: mrp: Fix endian conversion and some other warnings
@ 2020-06-28 13:45 Horatiu Vultur
2020-06-28 13:51 ` Nikolay Aleksandrov
2020-06-29 3:44 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Horatiu Vultur @ 2020-06-28 13:45 UTC (permalink / raw)
To: nikolay, roopa, davem, kuba, bridge, netdev, linux-kernel,
UNGLinuxDriver
Cc: Horatiu Vultur, kernel test robot
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: 2f1a11ae11d222 ("bridge: mrp: Add MRP interface.")
Fixes: 4b8d7d4c599182 ("bridge: mrp: Extend bridge interface")
Fixes: 9a9f26e8f7ea30 ("bridge: mrp: Connect MRP API with the switchdev API")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
net/bridge/br_mrp.c | 2 +-
net/bridge/br_private.h | 2 +-
net/bridge/br_private_mrp.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/bridge/br_mrp.c b/net/bridge/br_mrp.c
index 779e1eb754430..90592af9db619 100644
--- a/net/bridge/br_mrp.c
+++ b/net/bridge/br_mrp.c
@@ -86,7 +86,7 @@ static struct sk_buff *br_mrp_skb_alloc(struct net_bridge_port *p,
{
struct ethhdr *eth_hdr;
struct sk_buff *skb;
- u16 *version;
+ __be16 *version;
skb = dev_alloc_skb(MRP_MAX_FRAME_LENGTH);
if (!skb)
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 2130fe0194e64..e0ea6dbbc97ed 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -430,7 +430,7 @@ struct net_bridge {
struct hlist_head fdb_list;
#if IS_ENABLED(CONFIG_BRIDGE_MRP)
- struct list_head __rcu mrp_list;
+ struct list_head mrp_list;
#endif
};
diff --git a/net/bridge/br_private_mrp.h b/net/bridge/br_private_mrp.h
index 33b255e38ffec..315eb37d89f0f 100644
--- a/net/bridge/br_private_mrp.h
+++ b/net/bridge/br_private_mrp.h
@@ -8,7 +8,7 @@
struct br_mrp {
/* list of mrp instances */
- struct list_head __rcu list;
+ struct list_head list;
struct net_bridge_port __rcu *p_port;
struct net_bridge_port __rcu *s_port;
--
2.26.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] bridge: mrp: Fix endian conversion and some other warnings
2020-06-28 13:45 [PATCH net] bridge: mrp: Fix endian conversion and some other warnings Horatiu Vultur
@ 2020-06-28 13:51 ` Nikolay Aleksandrov
2020-06-29 3:44 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Nikolay Aleksandrov @ 2020-06-28 13:51 UTC (permalink / raw)
To: Horatiu Vultur, roopa, davem, kuba, bridge, netdev, linux-kernel,
UNGLinuxDriver
Cc: kernel test robot
On 28/06/2020 16:45, Horatiu Vultur wrote:
> 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: 2f1a11ae11d222 ("bridge: mrp: Add MRP interface.")
> Fixes: 4b8d7d4c599182 ("bridge: mrp: Extend bridge interface")
> Fixes: 9a9f26e8f7ea30 ("bridge: mrp: Connect MRP API with the switchdev API")
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> ---
> net/bridge/br_mrp.c | 2 +-
> net/bridge/br_private.h | 2 +-
> net/bridge/br_private_mrp.h | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> diff --git a/net/bridge/br_mrp.c b/net/bridge/br_mrp.c
> index 779e1eb754430..90592af9db619 100644
> --- a/net/bridge/br_mrp.c
> +++ b/net/bridge/br_mrp.c
> @@ -86,7 +86,7 @@ static struct sk_buff *br_mrp_skb_alloc(struct net_bridge_port *p,
> {
> struct ethhdr *eth_hdr;
> struct sk_buff *skb;
> - u16 *version;
> + __be16 *version;
>
> skb = dev_alloc_skb(MRP_MAX_FRAME_LENGTH);
> if (!skb)
> diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
> index 2130fe0194e64..e0ea6dbbc97ed 100644
> --- a/net/bridge/br_private.h
> +++ b/net/bridge/br_private.h
> @@ -430,7 +430,7 @@ struct net_bridge {
> struct hlist_head fdb_list;
>
> #if IS_ENABLED(CONFIG_BRIDGE_MRP)
> - struct list_head __rcu mrp_list;
> + struct list_head mrp_list;
> #endif
> };
>
> diff --git a/net/bridge/br_private_mrp.h b/net/bridge/br_private_mrp.h
> index 33b255e38ffec..315eb37d89f0f 100644
> --- a/net/bridge/br_private_mrp.h
> +++ b/net/bridge/br_private_mrp.h
> @@ -8,7 +8,7 @@
>
> struct br_mrp {
> /* list of mrp instances */
> - struct list_head __rcu list;
> + struct list_head list;
>
> struct net_bridge_port __rcu *p_port;
> struct net_bridge_port __rcu *s_port;
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] bridge: mrp: Fix endian conversion and some other warnings
2020-06-28 13:45 [PATCH net] bridge: mrp: Fix endian conversion and some other warnings Horatiu Vultur
2020-06-28 13:51 ` Nikolay Aleksandrov
@ 2020-06-29 3:44 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2020-06-29 3:44 UTC (permalink / raw)
To: horatiu.vultur
Cc: nikolay, roopa, kuba, bridge, netdev, linux-kernel, UNGLinuxDriver, lkp
From: Horatiu Vultur <horatiu.vultur@microchip.com>
Date: Sun, 28 Jun 2020 15:45:16 +0200
> 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: 2f1a11ae11d222 ("bridge: mrp: Add MRP interface.")
> Fixes: 4b8d7d4c599182 ("bridge: mrp: Extend bridge interface")
> Fixes: 9a9f26e8f7ea30 ("bridge: mrp: Connect MRP API with the switchdev API")
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-29 3:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 13:45 [PATCH net] bridge: mrp: Fix endian conversion and some other warnings Horatiu Vultur
2020-06-28 13:51 ` Nikolay Aleksandrov
2020-06-29 3:44 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®