All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove unused declarations for x86/trace
@ 2022-09-14 11:04 Gaosheng Cui
  2022-09-14 11:04 ` [PATCH 1/2] x86/ftrace: remove unused modifying_ftrace_code declaration Gaosheng Cui
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gaosheng Cui @ 2022-09-14 11:04 UTC (permalink / raw)
  To: rostedt, mingo, tglx, bp, dave.hansen, x86, hpa, mhiramat, peterz, ast
  Cc: linux-kernel

This series contains a few cleanup patches, to remove unused
declarations which have been removed. Thanks!

Gaosheng Cui (2):
  x86/ftrace: remove unused modifying_ftrace_code declaration
  x86/kprobes: remove unused arch_kprobe_override_function() declaration

 arch/x86/include/asm/ftrace.h  | 1 -
 arch/x86/include/asm/kprobes.h | 2 --
 2 files changed, 3 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] x86/ftrace: remove unused modifying_ftrace_code declaration
  2022-09-14 11:04 [PATCH 0/2] Remove unused declarations for x86/trace Gaosheng Cui
@ 2022-09-14 11:04 ` Gaosheng Cui
  2022-09-14 11:04 ` [PATCH 2/2] x86/kprobes: remove unused arch_kprobe_override_function() declaration Gaosheng Cui
  2022-09-26 17:22 ` [PATCH 0/2] Remove unused declarations for x86/trace Steven Rostedt
  2 siblings, 0 replies; 4+ messages in thread
From: Gaosheng Cui @ 2022-09-14 11:04 UTC (permalink / raw)
  To: rostedt, mingo, tglx, bp, dave.hansen, x86, hpa, mhiramat, peterz, ast
  Cc: linux-kernel

All uses of modifying_ftrace_code have been removed by
commit 768ae4406a5c ("x86/ftrace: Use text_poke()"),
so remove the declaration, too.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/x86/include/asm/ftrace.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h
index b5ef474be858..908d99b127d3 100644
--- a/arch/x86/include/asm/ftrace.h
+++ b/arch/x86/include/asm/ftrace.h
@@ -23,7 +23,6 @@
 #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
 
 #ifndef __ASSEMBLY__
-extern atomic_t modifying_ftrace_code;
 extern void __fentry__(void);
 
 static inline unsigned long ftrace_call_adjust(unsigned long addr)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] x86/kprobes: remove unused arch_kprobe_override_function() declaration
  2022-09-14 11:04 [PATCH 0/2] Remove unused declarations for x86/trace Gaosheng Cui
  2022-09-14 11:04 ` [PATCH 1/2] x86/ftrace: remove unused modifying_ftrace_code declaration Gaosheng Cui
@ 2022-09-14 11:04 ` Gaosheng Cui
  2022-09-26 17:22 ` [PATCH 0/2] Remove unused declarations for x86/trace Steven Rostedt
  2 siblings, 0 replies; 4+ messages in thread
From: Gaosheng Cui @ 2022-09-14 11:04 UTC (permalink / raw)
  To: rostedt, mingo, tglx, bp, dave.hansen, x86, hpa, mhiramat, peterz, ast
  Cc: linux-kernel

All uses of arch_kprobe_override_function() have been removed by
commit 540adea3809f ("error-injection: Separate error-injection
from kprobe"), so remove the declaration, too.

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

diff --git a/arch/x86/include/asm/kprobes.h b/arch/x86/include/asm/kprobes.h
index 71ea2eab43d5..a2e9317aad49 100644
--- a/arch/x86/include/asm/kprobes.h
+++ b/arch/x86/include/asm/kprobes.h
@@ -50,8 +50,6 @@ extern const int kretprobe_blacklist_size;
 
 void arch_remove_kprobe(struct kprobe *p);
 
-extern void arch_kprobe_override_function(struct pt_regs *regs);
-
 /* Architecture specific copy of original instruction*/
 struct arch_specific_insn {
 	/* copy of the original instruction */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Remove unused declarations for x86/trace
  2022-09-14 11:04 [PATCH 0/2] Remove unused declarations for x86/trace Gaosheng Cui
  2022-09-14 11:04 ` [PATCH 1/2] x86/ftrace: remove unused modifying_ftrace_code declaration Gaosheng Cui
  2022-09-14 11:04 ` [PATCH 2/2] x86/kprobes: remove unused arch_kprobe_override_function() declaration Gaosheng Cui
@ 2022-09-26 17:22 ` Steven Rostedt
  2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2022-09-26 17:22 UTC (permalink / raw)
  To: Gaosheng Cui
  Cc: mingo, tglx, bp, dave.hansen, x86, hpa, mhiramat, peterz, ast,
	linux-kernel

On Wed, 14 Sep 2022 19:04:35 +0800
Gaosheng Cui <cuigaosheng1@huawei.com> wrote:

> This series contains a few cleanup patches, to remove unused
> declarations which have been removed. Thanks!
> 
> Gaosheng Cui (2):
>   x86/ftrace: remove unused modifying_ftrace_code declaration
>   x86/kprobes: remove unused arch_kprobe_override_function() declaration
> 
>  arch/x86/include/asm/ftrace.h  | 1 -
>  arch/x86/include/asm/kprobes.h | 2 --
>  2 files changed, 3 deletions(-)
> 

Applied. Thanks Gaosheng!

-- Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-26 17:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 11:04 [PATCH 0/2] Remove unused declarations for x86/trace Gaosheng Cui
2022-09-14 11:04 ` [PATCH 1/2] x86/ftrace: remove unused modifying_ftrace_code declaration Gaosheng Cui
2022-09-14 11:04 ` [PATCH 2/2] x86/kprobes: remove unused arch_kprobe_override_function() declaration Gaosheng Cui
2022-09-26 17:22 ` [PATCH 0/2] Remove unused declarations for x86/trace Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.