diff options
Diffstat (limited to 'arch/powerpc/kernel/ftrace.c')
-rw-r--r-- | arch/powerpc/kernel/ftrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 4c75a1c0a5b4..5b5d16b2cac8 100644 --- a/arch/powerpc/kernel/ftrace.c +++ b/arch/powerpc/kernel/ftrace.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #ifdef CONFIG_DYNAMIC_FTRACE | 33 | #ifdef CONFIG_DYNAMIC_FTRACE |
34 | static unsigned int ftrace_nop_replace(void) | 34 | static unsigned int ftrace_nop_replace(void) |
35 | { | 35 | { |
36 | return PPC_NOP_INSTR; | 36 | return PPC_INST_NOP; |
37 | } | 37 | } |
38 | 38 | ||
39 | static unsigned int | 39 | static unsigned int |
@@ -302,7 +302,7 @@ __ftrace_make_nop(struct module *mod, | |||
302 | return -EINVAL; | 302 | return -EINVAL; |
303 | } | 303 | } |
304 | 304 | ||
305 | op = PPC_NOP_INSTR; | 305 | op = PPC_INST_NOP; |
306 | 306 | ||
307 | if (probe_kernel_write((void *)ip, &op, MCOUNT_INSN_SIZE)) | 307 | if (probe_kernel_write((void *)ip, &op, MCOUNT_INSN_SIZE)) |
308 | return -EPERM; | 308 | return -EPERM; |
@@ -380,7 +380,7 @@ __ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) | |||
380 | * b +8; ld r2,40(r1) | 380 | * b +8; ld r2,40(r1) |
381 | */ | 381 | */ |
382 | if (((op[0] != 0x48000008) || (op[1] != 0xe8410028)) && | 382 | if (((op[0] != 0x48000008) || (op[1] != 0xe8410028)) && |
383 | ((op[0] != PPC_NOP_INSTR) || (op[1] != PPC_NOP_INSTR))) { | 383 | ((op[0] != PPC_INST_NOP) || (op[1] != PPC_INST_NOP))) { |
384 | printk(KERN_ERR "Expected NOPs but have %x %x\n", op[0], op[1]); | 384 | printk(KERN_ERR "Expected NOPs but have %x %x\n", op[0], op[1]); |
385 | return -EINVAL; | 385 | return -EINVAL; |
386 | } | 386 | } |
@@ -423,7 +423,7 @@ __ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) | |||
423 | return -EFAULT; | 423 | return -EFAULT; |
424 | 424 | ||
425 | /* It should be pointing to a nop */ | 425 | /* It should be pointing to a nop */ |
426 | if (op != PPC_NOP_INSTR) { | 426 | if (op != PPC_INST_NOP) { |
427 | printk(KERN_ERR "Expected NOP but have %x\n", op); | 427 | printk(KERN_ERR "Expected NOP but have %x\n", op); |
428 | return -EINVAL; | 428 | return -EINVAL; |
429 | } | 429 | } |