]> git.karo-electronics.de Git - linux-beck.git/commit
mac802154: fix byteorder issues
authorAlexander Aring <alex.aring@gmail.com>
Sun, 2 Nov 2014 20:43:03 +0000 (21:43 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 2 Nov 2014 20:52:02 +0000 (21:52 +0100)
commitf753f7eeb4178ab8eeaf513a4fdf1c20ddf40474
tree97dae5215789bf41c3a862cb05f0efc939ef82f0
parentc28bee84c5c49312befe1b442e1044ac2392d80d
mac802154: fix byteorder issues

Running make C=2 occurs these warnings:

cast from restricted __be64
incorrect type in argument 1 (different base types)
expected unsigned long long[unsigned] [usertype] val
got restricted __be64 [usertype]<noident>
cast from restricted __be64
cast to restricted __le64

This patch fix these warnings by forcing to __le64 type and using swabp64
instead swab64.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/mac802154.h