Skip to content

Commit 112dfce

Browse files
Wan Jiabingtorvalds
authored andcommitted
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. Link: https://lkml.kernel.org/r/20210401104834.1009157-1-wanjiabing@vivo.com Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 08c5188 commit 112dfce

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎include/linux/profile.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define KVM_PROFILING 4
1616

1717
struct proc_dir_entry;
18-
struct pt_regs;
1918
struct notifier_block;
2019

2120
#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
@@ -84,8 +83,6 @@ int task_handoff_unregister(struct notifier_block * n);
8483
int profile_event_register(enum profile_type, struct notifier_block * n);
8584
int profile_event_unregister(enum profile_type, struct notifier_block * n);
8685

87-
struct pt_regs;
88-
8986
#else
9087

9188
#define prof_on 0

0 commit comments

Comments
 (0)