]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: fix endianness annotation for reloc_insn_movw() & reloc_insn_imm()
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 28 Jun 2017 14:56:00 +0000 (16:56 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 29 Jun 2017 10:09:39 +0000 (11:09 +0100)
commit9ee2281bc0e45883eac22641b5b69bf94519ed87
tree9483e778a453e71f85b15690729233638f585d72
parentb89ffcc0daabb34b709c8454535f7cf792260447
arm64: fix endianness annotation for reloc_insn_movw() & reloc_insn_imm()

Here the functions reloc_insn_movw() & reloc_insn_imm() are used
to read, modify and write back ARM instructions, which are always
stored in memory in little-endian order. These values are thus
correctly converted to/from native order but the pointers used to
hold their addresses are declared as for native order values.

Fix this by declaring the pointers as __le32* and remove the
casts that are now unneeded.

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