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
@@ -27,6 +27,7 @@
|
||||
#include <net/netlink.h>
|
||||
#include <linux/nl802154.h>
|
||||
#include <net/mac802154.h>
|
||||
#include <net/ieee802154_netdev.h>
|
||||
#include <net/route.h>
|
||||
#include <net/wpan-phy.h>
|
||||
|
||||
@@ -46,7 +47,9 @@ int mac802154_slave_open(struct net_device *dev)
|
||||
}
|
||||
|
||||
if (ipriv->ops->ieee_addr) {
|
||||
res = ipriv->ops->ieee_addr(&ipriv->hw, dev->dev_addr);
|
||||
__le64 addr = ieee802154_devaddr_from_raw(dev->dev_addr);
|
||||
|
||||
res = ipriv->ops->ieee_addr(&ipriv->hw, addr);
|
||||
WARN_ON(res);
|
||||
if (res)
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user