[PATCH 0/2] arm64: insn: cleanups
From: Mark Rutland <mark.rutland@arm.com>
Date: 2021-06-09 10:26:09
Hi Will, These couple of patches are fixups for the arm64 for-next/insn branch, which try to bring that inline with the intent of the original patches. The main change is to have users of patching code explicitly include <asm/patching.h> (which was the intent of the original patches), as having <asm/insn.h> include <asm/patching.h> can create some painful header dependencies, and this more clearly separates the insn parts under arm64/lib/ from the parts under arm64/kernel/. The header dependencies don't appear to be an issue today, but get in the way of some subsequent rework patches I'm developing, and I'd like to fix that now before there's any additional reliance on <asm/insn.h> pulling things in. The other change is to move AARCH64_INSN_SIZE into <asm/insn.h>, to keep all the insn bits in one place. The big diff for kprobes.c is due to sorting the includes, which are unchanged other than the <asm/patching.h> inclusion. Thanks. Mark. Mark Rutland (2): arm64: insn: decouple patching from insn code arm64: insn: move AARCH64_INSN_SIZE into <asm/insn.h> arch/arm64/include/asm/alternative-macros.h | 4 +--- arch/arm64/include/asm/insn.h | 4 +++- arch/arm64/include/asm/kvm_asm.h | 1 + arch/arm64/include/asm/patching.h | 2 -- arch/arm64/kernel/cpufeature.c | 1 + arch/arm64/kernel/ftrace.c | 1 + arch/arm64/kernel/jump_label.c | 1 + arch/arm64/kernel/kgdb.c | 1 + arch/arm64/kernel/patching.c | 2 ++ arch/arm64/kernel/probes/kprobes.c | 18 ++++++++++-------- arch/arm64/kernel/traps.c | 2 ++ arch/arm64/net/bpf_jit_comp.c | 1 + 12 files changed, 24 insertions(+), 14 deletions(-) -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel