arm64: fix endianness annotation for debug-monitors.c
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 28 Jun 2017 14:55:52 +0000 (16:55 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 29 Jun 2017 10:02:41 +0000 (11:02 +0100)
commita5018b0e6f036a598e55371e9135e287dc3b25e5
treec82e2ea54b3216b940a861428d450c979fe11ae7
parent0607512d0a8d7fac86667466b884095e04b10a59
arm64: fix endianness annotation for debug-monitors.c

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/debug-monitors.c