linux/profile.h: Remove unnecessary declaration
PATCH 1/1 linux/profile.h: Remove unnecessary declaration
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 <[email protected]>
--- include/linux/profile.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
include/linux/profile.h +1 -4
@@ -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
Signature · 1 line
2.25.1