aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-03-28 01:33:33 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-06 20:34:27 -0400
commitbb4398e1de739a13e06589fc04cbb2267ba59800 (patch)
treef2e47b907f4b5275ee708988ca7899349424f4b7 /arch/powerpc/include
parent32b941b79394435c1b6d688abfe762c5b3c82afa (diff)
powerpc/powernv: Fix endian issues with OPAL async code
OPAL defines opal_msg as a big endian struct so we have to byte swap it on little endian builds. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/opal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index 6fb5f90e6464..fc73661c20fa 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -422,9 +422,9 @@ enum OpalSysparamPerm {
422}; 422};
423 423
424struct opal_msg { 424struct opal_msg {
425 uint32_t msg_type; 425 __be32 msg_type;
426 uint32_t reserved; 426 __be32 reserved;
427 uint64_t params[8]; 427 __be64 params[8];
428}; 428};
429 429
430struct opal_machine_check_event { 430struct opal_machine_check_event {