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

kprobes: Remove obsoleted declaration for init_test_probes

The init_test_probes() have been removed since
commit e44e81c5b90f ("kprobes: convert tests to kunit"), and now
it is useless, so remove it.

Link: https://lore.kernel.org/all/20240826032552.4016314-1-cuigaosheng1@huawei.com/

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>

authored by

Gaosheng Cui and committed by
Masami Hiramatsu (Google)
ce4db753 10cdb82a

-9
-9
include/linux/kprobes.h
··· 269 269 270 270 extern struct kretprobe_blackpoint kretprobe_blacklist[]; 271 271 272 - #ifdef CONFIG_KPROBES_SANITY_TEST 273 - extern int init_test_probes(void); 274 - #else /* !CONFIG_KPROBES_SANITY_TEST */ 275 - static inline int init_test_probes(void) 276 - { 277 - return 0; 278 - } 279 - #endif /* CONFIG_KPROBES_SANITY_TEST */ 280 - 281 272 extern int arch_prepare_kprobe(struct kprobe *p); 282 273 extern void arch_arm_kprobe(struct kprobe *p); 283 274 extern void arch_disarm_kprobe(struct kprobe *p);