]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/probes: Remove ppc_opcode_t
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 7 Jul 2022 14:55:14 +0000 (16:55 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:05 +0000 (21:36 +1000)
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
arch/powerpc/include/asm/kprobes.h
arch/powerpc/include/asm/probes.h
arch/powerpc/include/asm/uprobes.h

index bab364152b2932d568405186aaeb312a169de50a..c8e4b4fd4e33020261861c76d0139b7abab792d5 100644 (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;
 
index 6f66e358aa37805cd7169b3c4d329bcd40375842..00634e3145e705961776566f485c68514418c874 100644 (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 */
index a7ae1860115a88129503ffad7837960741bb2bcd..4fea116d3d37aaffed5c8440766fbb2a4d4b7e07 100644 (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)