diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-06-28 17:58:11 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-06-29 13:02:42 +0300 |
commit | 57c138357d5922878b3bc5207bd59b8512ee80e6 (patch) | |
tree | a4a33d37062318c9cf4cffac7c69ce0c3b9fe82a /include/linux/fpga/fpga-bridge.h | |
parent | 65de142143206c7ffd98b0fcb062a79b3c6f1934 (diff) | |
download | linux-57c138357d5922878b3bc5207bd59b8512ee80e6.tar.xz |
arm64: fix endianness annotation for aarch64_insn_write()
aarch64_insn_write() is used to write an instruction.
As on ARM64 in-memory instructions are always stored
in little-endian order, this function, taking the instruction
opcode in native order, correctly convert it to little-endian
before sending it to an helper function __aarch64_insn_write()
which will do the effective write.
This is all good, but the variable and argument holding the
converted value are not annotated for a little-endian value
but left for native values.
Fix this by adjusting the prototype of the helper and
directly using the result of cpu_to_le32() without passing
by an intermediate variable (which was not a distinct one
but the same as the one holding the native value).
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions