powerpc: Make unaligned accesses endian-safe for powerpc
authorRajesh B Prathipati <rprathip@linux.vnet.ibm.com>
Mon, 16 Dec 2013 07:58:22 +0000 (18:58 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Dec 2013 03:02:29 +0000 (14:02 +1100)
commite8a00ad5e238421ded856ea39f692b94c2d324eb
tree684f467c9e0d047c6d251a903862613fe39c2815
parent90ff5d688e61f49f23545ffab6228bd7e87e6dc7
powerpc: Make unaligned accesses endian-safe for powerpc

The generic put_unaligned/get_unaligned macros were made endian-safe by
calling the appropriate endian dependent macros based on the endian type
of the powerpc processor.

Signed-off-by: Rajesh B Prathipati <rprathip@linux.vnet.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/unaligned.h