]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: brcm80211: fixed build issue for big endian platforms
authorRoland Vossen <rvossen@broadcom.com>
Mon, 8 Aug 2011 13:58:22 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:00:02 +0000 (13:00 -0700)
commit98ff86e37d1d1c3ebcaa124dfa9a900eb0e1fa77
tree6e3dfa425758b479943aaf846b4e569f42bed923
parent9204df650808cf6cf1d84e027c3fec66d7d845d2
staging: brcm80211: fixed build issue for big endian platforms

Driver now builds for big endian mips platform, possibly also for other
big endian platforms. A change was made to the R_REG and W_REG macro's.
These macro's perform an xor (^) operation for endianess swap purposes.
Gcc complained because an xor operation is not allowed on a pointer type.
Fixed this by casting the pointer to an unsigned long.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/dma.h
drivers/staging/brcm80211/brcmsmac/types.h