powerpc/probes: Remove ppc_opcode_t

ppc_opcode_t is just an u32. There is no point in hiding u32
behind such a typedef. Remove it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b2d762191b095530789ac8b71b167c6740bb6aed.1657205708.git.christophe.leroy@csgroup.eu
This commit is contained in:
Christophe Leroy 2022-07-07 16:55:14 +02:00 committed by Michael Ellerman
parent 62ccae7882
commit 7b48377e1d
3 changed files with 2 additions and 3 deletions

View file

@ -29,7 +29,7 @@
struct pt_regs;
struct kprobe;
typedef ppc_opcode_t kprobe_opcode_t;
typedef u32 kprobe_opcode_t;
extern kprobe_opcode_t optinsn_slot;

View file

@ -10,7 +10,6 @@
#include <linux/types.h>
#include <asm/disassemble.h>
typedef u32 ppc_opcode_t;
#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */
/* Trap definitions per ISA */

View file

@ -12,7 +12,7 @@
#include <linux/notifier.h>
#include <asm/probes.h>
typedef ppc_opcode_t uprobe_opcode_t;
typedef u32 uprobe_opcode_t;
#define MAX_UINSN_BYTES 8
#define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES)