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

MIPS: uprobes: Remove __weak attribute from arch_uprobe_copy_ixol.

Arch-specific implementation of arch_uprobe_copy_ixol is expected to
override the weak implementation in generic code.
As currently both implementations are marked as weak, it is up to the
linker to chose one. Remove the __weak attribute from MIPS code to make
sure the correct version is used.

Fixes: 40e084a506eb ("MIPS: Add uprobes support.")
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14660/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Marcin Nowakowski and committed by
Ralf Baechle
cd854fc6 9c48568b

+1 -1
+1 -1
arch/mips/kernel/uprobes.c
··· 226 226 return uprobe_write_opcode(mm, vaddr, UPROBE_SWBP_INSN); 227 227 } 228 228 229 - void __weak arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, 229 + void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, 230 230 void *src, unsigned long len) 231 231 { 232 232 unsigned long kaddr, kstart;