Skip to content

Commit 7b48377

Browse files
chleroympe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/b2d762191b095530789ac8b71b167c6740bb6aed.1657205708.git.christophe.leroy@csgroup.eu
1 parent 62ccae7 commit 7b48377

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

arch/powerpc/include/asm/kprobes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
struct pt_regs;
3030
struct kprobe;
3131

32-
typedef ppc_opcode_t kprobe_opcode_t;
32+
typedef u32 kprobe_opcode_t;
3333

3434
extern kprobe_opcode_t optinsn_slot;
3535

arch/powerpc/include/asm/probes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <linux/types.h>
1111
#include <asm/disassemble.h>
1212

13-
typedef u32 ppc_opcode_t;
1413
#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */
1514

1615
/* Trap definitions per ISA */

arch/powerpc/include/asm/uprobes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <linux/notifier.h>
1313
#include <asm/probes.h>
1414

15-
typedef ppc_opcode_t uprobe_opcode_t;
15+
typedef u32 uprobe_opcode_t;
1616

1717
#define MAX_UINSN_BYTES 8
1818
#define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES)

0 commit comments

Comments
 (0)