You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ieee802154: enforce consistent endianness in the 802.15.4 stack
Enable sparse warnings about endianness, replace the remaining fields regarding network operations without explicit endianness annotations with such that are annotated, and propagate this through the entire stack. Uses of ieee802154_addr_sa are not changed yet, this patch is only concerned with all other fields (such as address filters, operation parameters and the likes). Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
46ef0eb3ea
commit
b70ab2e87f
@@ -171,7 +171,7 @@ struct ieee802154_mlme_ops {
|
||||
u8 channel, u8 page, u8 cap);
|
||||
int (*assoc_resp)(struct net_device *dev,
|
||||
struct ieee802154_addr_sa *addr,
|
||||
u16 short_addr, u8 status);
|
||||
__le16 short_addr, u8 status);
|
||||
int (*disassoc_req)(struct net_device *dev,
|
||||
struct ieee802154_addr_sa *addr,
|
||||
u8 reason);
|
||||
@@ -190,8 +190,8 @@ struct ieee802154_mlme_ops {
|
||||
* FIXME: these should become the part of PIB/MIB interface.
|
||||
* However we still don't have IB interface of any kind
|
||||
*/
|
||||
u16 (*get_pan_id)(const struct net_device *dev);
|
||||
u16 (*get_short_addr)(const struct net_device *dev);
|
||||
__le16 (*get_pan_id)(const struct net_device *dev);
|
||||
__le16 (*get_short_addr)(const struct net_device *dev);
|
||||
u8 (*get_dsn)(const struct net_device *dev);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user