All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux/profile.h: Remove unnecessary declaration
@ 2021-03-26 12:09 Wan Jiabing
  0 siblings, 0 replies; 2+ messages in thread
From: Wan Jiabing @ 2021-03-26 12:09 UTC (permalink / raw)
  To: Wan Jiabing, linux-kernel; +Cc: kael_w

Declaring struct pt_regs is unnecessary.
On the one hand, there is no function using it;
on the other hand, struct pt_regs has been declared
in linux/kernel.h. Remove them.
Reorder the forward declaration to be in alphabetic order.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 include/linux/profile.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/linux/profile.h b/include/linux/profile.h
index bad18ca43150..59b3acbbcc2b 100644
--- a/include/linux/profile.h
+++ b/include/linux/profile.h
@@ -14,9 +14,8 @@
 #define SLEEP_PROFILING	3
 #define KVM_PROFILING	4
 
-struct proc_dir_entry;
-struct pt_regs;
 struct notifier_block;
+struct proc_dir_entry;
 
 #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
 void create_prof_cpu_mask(void);
@@ -84,8 +83,6 @@ int task_handoff_unregister(struct notifier_block * n);
 int profile_event_register(enum profile_type, struct notifier_block * n);
 int profile_event_unregister(enum profile_type, struct notifier_block * n);
 
-struct pt_regs;
-
 #else
 
 #define prof_on 0
-- 
2.25.1


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

* [PATCH] linux/profile.h: Remove unnecessary declaration
@ 2021-04-01 10:48 Wan Jiabing
  0 siblings, 0 replies; 2+ messages in thread
From: Wan Jiabing @ 2021-04-01 10:48 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: kael_w, Wan Jiabing

Declaring struct pt_regs is unnecessary.
On the one hand, there is no function using it;
on the other hand, struct pt_regs has been declared
in linux/kernel.h. Remove them.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 include/linux/profile.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/linux/profile.h b/include/linux/profile.h
index bad18ca43150..fd18ca96f557 100644
--- a/include/linux/profile.h
+++ b/include/linux/profile.h
@@ -15,7 +15,6 @@
 #define KVM_PROFILING	4
 
 struct proc_dir_entry;
-struct pt_regs;
 struct notifier_block;
 
 #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
@@ -84,8 +83,6 @@ int task_handoff_unregister(struct notifier_block * n);
 int profile_event_register(enum profile_type, struct notifier_block * n);
 int profile_event_unregister(enum profile_type, struct notifier_block * n);
 
-struct pt_regs;
-
 #else
 
 #define prof_on 0
-- 
2.25.1


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

end of thread, other threads:[~2021-04-01 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26 12:09 [PATCH] linux/profile.h: Remove unnecessary declaration Wan Jiabing
2021-04-01 10:48 Wan Jiabing

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.