All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: insn: cleanups
@ 2021-06-09 10:22 Mark Rutland
  2021-06-09 10:23 ` [PATCH 1/2] arm64: insn: decouple patching from insn code Mark Rutland
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mark Rutland @ 2021-06-09 10:22 UTC (permalink / raw)
  To: linux-arm-kernel, will; +Cc: Mark Rutland

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-21 16:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 10:22 [PATCH 0/2] arm64: insn: cleanups Mark Rutland
2021-06-09 10:23 ` [PATCH 1/2] arm64: insn: decouple patching from insn code Mark Rutland
2021-06-09 10:23 ` [PATCH 2/2] arm64: insn: move AARCH64_INSN_SIZE into <asm/insn.h> Mark Rutland
2021-06-18  1:25   ` Nathan Chancellor
2021-06-18 15:18     ` Mark Rutland
2021-06-18 16:53       ` Nathan Chancellor
2021-06-21  8:08         ` Mark Rutland
2021-06-21 10:59           ` Will Deacon
2021-06-21 16:12           ` Nathan Chancellor
2021-06-11 16:15 ` [PATCH 0/2] arm64: insn: cleanups Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.