s390: Remove two unused inline functions
authorYueHaibing <yuehaibing@huawei.com>
Fri, 8 May 2020 14:07:24 +0000 (22:07 +0800)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 20 May 2020 08:22:49 +0000 (10:22 +0200)
commit 657480d9c015 ("s390: support KPROBES_ON_FTRACE")
left behind this, remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Sven Schnelle <svens@linux.ibm.com>
Link: https://lore.kernel.org/r/20200508140724.11324-1-yuehaibing@huawei.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/ftrace.c

index 4cd9b1ada8340c7ea21522963dcf8e9a46294c51..44e01dd1e624cfcd6fef061249fd1a0312af68d5 100644 (file)
@@ -72,22 +72,6 @@ static inline void ftrace_generate_orig_insn(struct ftrace_insn *insn)
 #endif
 }
 
-static inline void ftrace_generate_kprobe_nop_insn(struct ftrace_insn *insn)
-{
-#ifdef CONFIG_KPROBES
-       insn->opc = BREAKPOINT_INSTRUCTION;
-       insn->disp = KPROBE_ON_FTRACE_NOP;
-#endif
-}
-
-static inline void ftrace_generate_kprobe_call_insn(struct ftrace_insn *insn)
-{
-#ifdef CONFIG_KPROBES
-       insn->opc = BREAKPOINT_INSTRUCTION;
-       insn->disp = KPROBE_ON_FTRACE_CALL;
-#endif
-}
-
 int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr,
                       unsigned long addr)
 {