diff mbox series

[-next] kprobes: Remove obsoleted declaration for init_test_probes

Message ID 20240826032552.4016314-1-cuigaosheng1@huawei.com (mailing list archive)
State Queued
Commit c1868c8b60a05c1fa9bc99524049d314cc4bd803
Headers show
Series [-next] kprobes: Remove obsoleted declaration for init_test_probes | expand

Commit Message

Gaosheng Cui Aug. 26, 2024, 3:25 a.m. UTC
The init_test_probes() have been removed since
commit e44e81c5b90f ("kprobes: convert tests to kunit"), and now
it is useless, so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 include/linux/kprobes.h | 9 ---------
 1 file changed, 9 deletions(-)

Comments

Masami Hiramatsu (Google) Sept. 3, 2024, 10:11 p.m. UTC | #1
On Mon, 26 Aug 2024 11:25:52 +0800
Gaosheng Cui <cuigaosheng1@huawei.com> wrote:

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

Looks good to me. Let me pick it.

Thank you

> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
> ---
>  include/linux/kprobes.h | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h
> index 5fcbc254d186..8c4f3bb24429 100644
> --- a/include/linux/kprobes.h
> +++ b/include/linux/kprobes.h
> @@ -269,15 +269,6 @@ extern unsigned long __stop_kprobe_blacklist[];
>  
>  extern struct kretprobe_blackpoint kretprobe_blacklist[];
>  
> -#ifdef CONFIG_KPROBES_SANITY_TEST
> -extern int init_test_probes(void);
> -#else /* !CONFIG_KPROBES_SANITY_TEST */
> -static inline int init_test_probes(void)
> -{
> -	return 0;
> -}
> -#endif /* CONFIG_KPROBES_SANITY_TEST */
> -
>  extern int arch_prepare_kprobe(struct kprobe *p);
>  extern void arch_arm_kprobe(struct kprobe *p);
>  extern void arch_disarm_kprobe(struct kprobe *p);
> -- 
> 2.25.1
>
diff mbox series

Patch

diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h
index 5fcbc254d186..8c4f3bb24429 100644
--- a/include/linux/kprobes.h
+++ b/include/linux/kprobes.h
@@ -269,15 +269,6 @@  extern unsigned long __stop_kprobe_blacklist[];
 
 extern struct kretprobe_blackpoint kretprobe_blacklist[];
 
-#ifdef CONFIG_KPROBES_SANITY_TEST
-extern int init_test_probes(void);
-#else /* !CONFIG_KPROBES_SANITY_TEST */
-static inline int init_test_probes(void)
-{
-	return 0;
-}
-#endif /* CONFIG_KPROBES_SANITY_TEST */
-
 extern int arch_prepare_kprobe(struct kprobe *p);
 extern void arch_arm_kprobe(struct kprobe *p);
 extern void arch_disarm_kprobe(struct kprobe *p);