projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b71f6
)
ftrace: Clean up ftrace_module_init() code
author
Steven Rostedt (Red Hat)
<rostedt@goodmis.org>
Wed, 23 Dec 2015 17:12:22 +0000
(12:12 -0500)
committer
Steven Rostedt
<rostedt@goodmis.org>
Wed, 23 Dec 2015 19:27:23 +0000
(14:27 -0500)
The start and end variables were only used when ftrace_module_init() was
split up into multiple functions. No need to keep them around after the
merger.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/ftrace.c
b/kernel/trace/ftrace.c
index 29fcc2c765838d6ade7be21bc2eddaac6da11b4e..0f7ee341f89f1edded2ee0de31ddf4d5df3736f2 100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-4982,14
+4982,11
@@
void ftrace_release_mod(struct module *mod)
void ftrace_module_init(struct module *mod)
{
- unsigned long *start = mod->ftrace_callsites;
- unsigned long *end = mod->ftrace_callsites +
- mod->num_ftrace_callsites;
-
- if (ftrace_disabled || start == end)
+ if (ftrace_disabled || !mod->num_ftrace_callsites)
return;
- ftrace_process_locs(mod, start, end);
+ ftrace_process_locs(mod, mod->ftrace_callsites,
+ mod->ftrace_callsites + mod->num_ftrace_callsites);
}
static int ftrace_module_notify_exit(struct notifier_block *self,