Skip to content

arm64: insn: cleanups

Mark Rutland linux-arm-kernel 1 version Applied

Status from this message: Applied to arm64 (for-next/insn), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: insn: decouple patching from insn codearch/arm64/include/asm/insn.h arch/arm64/include/asm/patching.h arch/arm64/kernel/ftrace.c +5 more+15 -110 replies
2/2arm64: insn: move AARCH64_INSN_SIZE into <asm/insn.h>arch/arm64/include/asm/alternative-macros.h arch/arm64/include/asm/insn.h arch/arm64/include/asm/kvm_asm.h +4 more+9 -36 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchNathan Chancellor
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] arm64: insn: cleanups

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(-)
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel