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
@@ -363,8 +363,8 @@ int ieee802154_dgram_deliver(struct net_device *dev, struct sk_buff *skb)
|
||||
/* Data frame processing */
|
||||
BUG_ON(dev->type != ARPHRD_IEEE802154);
|
||||
|
||||
pan_id = ieee802154_mlme_ops(dev)->get_pan_id(dev);
|
||||
short_addr = ieee802154_mlme_ops(dev)->get_short_addr(dev);
|
||||
pan_id = le16_to_cpu(ieee802154_mlme_ops(dev)->get_pan_id(dev));
|
||||
short_addr = le16_to_cpu(ieee802154_mlme_ops(dev)->get_short_addr(dev));
|
||||
|
||||
read_lock(&dgram_lock);
|
||||
sk_for_each(sk, &dgram_head) {
|
||||
|
Reference in New Issue
Block a user