Message ID | 20160104174829.GJ1616@arm.com |
---|---|
State | New |
Headers | show |
diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index 266e7490e85c..6546032bb83b 100644 --- a/arch/arm64/kernel/module.c +++ b/arch/arm64/kernel/module.c @@ -140,11 +140,10 @@ static int reloc_insn_movw(enum aarch64_reloc_op op, void *place, u64 val, */ imm = ~imm; } - imm_type = AARCH64_INSN_IMM_MOVK; } /* Update the instruction with the new encoding. */ - insn = aarch64_insn_encode_immediate(imm_type, insn, imm); + insn = aarch64_insn_encode_immediate(AARCH64_INSN_IMM_16, insn, imm); *(u32 *)place = cpu_to_le32(insn); /* Shift out the immediate field. */