[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200530180948.1194569-2-horatiu.vultur@microchip.com>
Date: Sat, 30 May 2020 18:09:46 +0000
From: Horatiu Vultur <horatiu.vultur@...rochip.com>
To: <nikolay@...ulusnetworks.com>, <roopa@...ulusnetworks.com>,
<jiri@...nulli.us>, <ivecera@...hat.com>, <davem@...emloft.net>,
<kuba@...nel.org>, <UNGLinuxDriver@...rochip.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<bridge@...ts.linux-foundation.org>
CC: Horatiu Vultur <horatiu.vultur@...rochip.com>
Subject: [PATCH net-next v2 1/3] bridge: mrp: Update MRP frame type
Replace u16/u32 with be16/be32 in the MRP frame types.
This fixes sparse warnings like:
warning: cast to restricted __be16
Signed-off-by: Horatiu Vultur <horatiu.vultur@...rochip.com>
---
include/uapi/linux/mrp_bridge.h | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/include/uapi/linux/mrp_bridge.h b/include/uapi/linux/mrp_bridge.h
index 2600cdf5a2848..bcad42128d625 100644
--- a/include/uapi/linux/mrp_bridge.h
+++ b/include/uapi/linux/mrp_bridge.h
@@ -55,30 +55,30 @@ struct br_mrp_end_hdr {
};
struct br_mrp_common_hdr {
- __u16 seq_id;
+ __be16 seq_id;
__u8 domain[MRP_DOMAIN_UUID_LENGTH];
};
struct br_mrp_ring_test_hdr {
- __u16 prio;
+ __be16 prio;
__u8 sa[ETH_ALEN];
- __u16 port_role;
- __u16 state;
- __u16 transitions;
- __u32 timestamp;
+ __be16 port_role;
+ __be16 state;
+ __be16 transitions;
+ __be32 timestamp;
};
struct br_mrp_ring_topo_hdr {
- __u16 prio;
+ __be16 prio;
__u8 sa[ETH_ALEN];
- __u16 interval;
+ __be16 interval;
};
struct br_mrp_ring_link_hdr {
__u8 sa[ETH_ALEN];
- __u16 port_role;
- __u16 interval;
- __u16 blocked;
+ __be16 port_role;
+ __be16 interval;
+ __be16 blocked;
};
#endif
--
2.26.2
Powered by blists - more mailing lists