Prev: [PATCH 1/2] scripts/kernel-doc: fix fatal error in function signature
Next: [PATCH 2/2] scripts/kernel-doc: handle/ignore __aligned
From: Jason Baron on 16 Mar 2010 13:50 Since TRACE_SYS_ENTER_PROFILE_INIT() and TRACE_SYS_EXIT_PROFILE_INIT() don't do anything with their arguments, remove them. Also, TRACE_SYS_ENTER_PROFILE() and TRACE_SYS_EXIT_PROFILE() don't appear to be used. remove them. Signed-off-by: Jason Baron <jbaron(a)redhat.com> --- include/linux/syscalls.h | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 4cbc370..501cd46 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -101,18 +101,16 @@ struct perf_event_attr; #ifdef CONFIG_PERF_EVENTS -#define TRACE_SYS_ENTER_PROFILE_INIT(sname) \ +#define TRACE_SYS_ENTER_PROFILE_INIT \ .profile_enable = prof_sysenter_enable, \ .profile_disable = prof_sysenter_disable, -#define TRACE_SYS_EXIT_PROFILE_INIT(sname) \ +#define TRACE_SYS_EXIT_PROFILE_INIT \ .profile_enable = prof_sysexit_enable, \ .profile_disable = prof_sysexit_disable, #else -#define TRACE_SYS_ENTER_PROFILE(sname) -#define TRACE_SYS_ENTER_PROFILE_INIT(sname) -#define TRACE_SYS_EXIT_PROFILE(sname) -#define TRACE_SYS_EXIT_PROFILE_INIT(sname) +#define TRACE_SYS_ENTER_PROFILE_INIT +#define TRACE_SYS_EXIT_PROFILE_INIT #endif /* CONFIG_PERF_EVENTS */ #ifdef CONFIG_FTRACE_SYSCALLS @@ -149,7 +147,7 @@ struct perf_event_attr; .regfunc = reg_event_syscall_enter, \ .unregfunc = unreg_event_syscall_enter, \ .data = (void *)&__syscall_meta_##sname,\ - TRACE_SYS_ENTER_PROFILE_INIT(sname) \ + TRACE_SYS_ENTER_PROFILE_INIT \ } #define SYSCALL_TRACE_EXIT_EVENT(sname) \ @@ -171,7 +169,7 @@ struct perf_event_attr; .regfunc = reg_event_syscall_exit, \ .unregfunc = unreg_event_syscall_exit, \ .data = (void *)&__syscall_meta_##sname,\ - TRACE_SYS_EXIT_PROFILE_INIT(sname) \ + TRACE_SYS_EXIT_PROFILE_INIT \ } #define SYSCALL_METADATA(rname, sname, nb) \ -- 1.6.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |