mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The probe_opcode_t typedef for u32 isn't necessary, and is a source of confusion as it is easily confused with kprobe_opcode_t, which is a typedef for __le32. The typedef is only used within arch/arm64, and all of arm64's commn insn code uses u32 for the endian-agnostic value of an instruction, so it'd be clearer to use u32 consistently. Remove probe_opcode_t and use u32 directly. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marnias@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20241008155851.801546-7-mark.rutland@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
27 lines
549 B
C
27 lines
549 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm64/include/asm/probes.h
|
|
*
|
|
* Copyright (C) 2013 Linaro Limited
|
|
*/
|
|
#ifndef _ARM_PROBES_H
|
|
#define _ARM_PROBES_H
|
|
|
|
#include <asm/insn.h>
|
|
|
|
typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
|
|
|
|
struct arch_probe_insn {
|
|
probes_handler_t *handler;
|
|
};
|
|
#ifdef CONFIG_KPROBES
|
|
typedef __le32 kprobe_opcode_t;
|
|
struct arch_specific_insn {
|
|
struct arch_probe_insn api;
|
|
kprobe_opcode_t *xol_insn;
|
|
/* restore address after step xol */
|
|
unsigned long xol_restore;
|
|
};
|
|
#endif
|
|
|
|
#endif
|