arm64: fix endianness annotation in call_undef_hook()
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 28 Jun 2017 14:55:55 +0000 (16:55 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 29 Jun 2017 10:02:42 +0000 (11:02 +0100)
commit6cf5d4af83e04f4cfae91bfdefd9d4d6949c09b2
treeb12662f89790cdb0e64f9169739a1c40a29e9ef2
parenta5018b0e6f036a598e55371e9135e287dc3b25e5
arm64: fix endianness annotation in call_undef_hook()

Here we're reading thumb or ARM instructions, which are always
stored in memory in little-endian order. These values are thus
correctly converted to native order but the intermediate value
should be annotated as for little-endian values.

Fix this by declaring the intermediate var as __le32 or __le16.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/traps.c