Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Christophe Leroy and committed by
Michael Ellerman
7b48377e 62ccae78

+2 -3
+1 -1
arch/powerpc/include/asm/kprobes.h
··· 29 29 struct pt_regs; 30 30 struct kprobe; 31 31 32 - typedef ppc_opcode_t kprobe_opcode_t; 32 + typedef u32 kprobe_opcode_t; 33 33 34 34 extern kprobe_opcode_t optinsn_slot; 35 35
-1
arch/powerpc/include/asm/probes.h
··· 10 10 #include <linux/types.h> 11 11 #include <asm/disassemble.h> 12 12 13 - typedef u32 ppc_opcode_t; 14 13 #define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */ 15 14 16 15 /* Trap definitions per ISA */
+1 -1
arch/powerpc/include/asm/uprobes.h
··· 12 12 #include <linux/notifier.h> 13 13 #include <asm/probes.h> 14 14 15 - typedef ppc_opcode_t uprobe_opcode_t; 15 + typedef u32 uprobe_opcode_t; 16 16 17 17 #define MAX_UINSN_BYTES 8 18 18 #define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES)