Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wan Jiabing and committed by
Linus Torvalds
112dfce8 08c5188e

-3
-3
include/linux/profile.h
··· 15 15 #define KVM_PROFILING 4 16 16 17 17 struct proc_dir_entry; 18 - struct pt_regs; 19 18 struct notifier_block; 20 19 21 20 #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) ··· 82 83 83 84 int profile_event_register(enum profile_type, struct notifier_block * n); 84 85 int profile_event_unregister(enum profile_type, struct notifier_block * n); 85 - 86 - struct pt_regs; 87 86 88 87 #else 89 88