Skip to content

Commit afa624f

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: Remove set_swbp() in uprobes.c
set_swbp() in arch/mips/kernel/uprobes.c is same with the weak version in kernel/events/uprobes.c, remove it. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent f5748b8 commit afa624f

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

arch/mips/kernel/uprobes.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -207,24 +207,6 @@ unsigned long arch_uretprobe_hijack_return_addr(
207207
return ra;
208208
}
209209

210-
/**
211-
* set_swbp - store breakpoint at a given address.
212-
* @auprobe: arch specific probepoint information.
213-
* @mm: the probed process address space.
214-
* @vaddr: the virtual address to insert the opcode.
215-
*
216-
* For mm @mm, store the breakpoint instruction at @vaddr.
217-
* Return 0 (success) or a negative errno.
218-
*
219-
* This version overrides the weak version in kernel/events/uprobes.c.
220-
* It is required to handle MIPS16 and microMIPS.
221-
*/
222-
int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm,
223-
unsigned long vaddr)
224-
{
225-
return uprobe_write_opcode(auprobe, mm, vaddr, UPROBE_SWBP_INSN);
226-
}
227-
228210
void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr,
229211
void *src, unsigned long len)
230212
{

0 commit comments

Comments
 (0)