Skip to content

Commit

Permalink
powerpc/probes: Remove ppc_opcode_t
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed Jul 27, 2022
1 parent 62ccae7 commit 7b48377
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/include/asm/probes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/uprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b48377

Please sign in to comment.