aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2013-01-09 18:09:20 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-03-11 22:52:43 -0400
commitd88471cb8b17a72b1edf5ab62e1704d78373c066 (patch)
treeeabaeddad2b3c4c20b053e7e03aa30e50b99c263
parent3bbc8db341773eb6aa5576eaabca4e95170fbe34 (diff)
ftrace: Constify ftrace_text_reserved
Link: http://lkml.kernel.org/r/1357772960-4436-5-git-send-email-sasha.levin@oracle.com Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--include/linux/ftrace.h4
-rw-r--r--kernel/trace/ftrace.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 20da0561b868..9212b017bc72 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -299,7 +299,7 @@ extern void
299unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops); 299unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops);
300extern void unregister_ftrace_function_probe_all(char *glob); 300extern void unregister_ftrace_function_probe_all(char *glob);
301 301
302extern int ftrace_text_reserved(void *start, void *end); 302extern int ftrace_text_reserved(const void *start, const void *end);
303 303
304extern int ftrace_nr_registered_ops(void); 304extern int ftrace_nr_registered_ops(void);
305 305
@@ -552,7 +552,7 @@ static inline __init int unregister_ftrace_command(char *cmd_name)
552{ 552{
553 return -EINVAL; 553 return -EINVAL;
554} 554}
555static inline int ftrace_text_reserved(void *start, void *end) 555static inline int ftrace_text_reserved(const void *start, const void *end)
556{ 556{
557 return 0; 557 return 0;
558} 558}
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index b4531b228180..1fd4b9479210 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1555,7 +1555,7 @@ unsigned long ftrace_location(unsigned long ip)
1555 * the function tracer. It checks the ftrace internal tables to 1555 * the function tracer. It checks the ftrace internal tables to
1556 * determine if the address belongs or not. 1556 * determine if the address belongs or not.
1557 */ 1557 */
1558int ftrace_text_reserved(void *start, void *end) 1558int ftrace_text_reserved(const void *start, const void *end)
1559{ 1559{
1560 unsigned long ret; 1560 unsigned long ret;
1561 1561