[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1357772960-4436-5-git-send-email-sasha.levin@oracle.com>
Date: Wed, 9 Jan 2013 18:09:20 -0500
From: Sasha Levin <sasha.levin@...cle.com>
To: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
rostedt@...dmis.org, fweisbec@...il.com, rusty@...tcorp.com.au,
ananth@...ibm.com, anil.s.keshavamurthy@...el.com,
masami.hiramatsu.pt@...achi.com, jbaron@...hat.com
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
Sasha Levin <sasha.levin@...cle.com>
Subject: [PATCH 5/5] ftrace: constify ftrace_text_reserved
Signed-off-by: Sasha Levin <sasha.levin@...cle.com>
---
include/linux/ftrace.h | 4 ++--
kernel/trace/ftrace.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 92691d8..cbd927f 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -277,7 +277,7 @@ extern void
unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops);
extern void unregister_ftrace_function_probe_all(char *glob);
-extern int ftrace_text_reserved(void *start, void *end);
+extern int ftrace_text_reserved(const void *start, const void *end);
extern int ftrace_nr_registered_ops(void);
@@ -534,7 +534,7 @@ static inline int unregister_ftrace_command(char *cmd_name)
{
return -EINVAL;
}
-static inline int ftrace_text_reserved(void *start, void *end)
+static inline int ftrace_text_reserved(const void *start, const void *end)
{
return 0;
}
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 3ffe4c5..4ecdcf8 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1469,7 +1469,7 @@ unsigned long ftrace_location(unsigned long ip)
* the function tracer. It checks the ftrace internal tables to
* determine if the address belongs or not.
*/
-int ftrace_text_reserved(void *start, void *end)
+int ftrace_text_reserved(const void *start, const void *end)
{
unsigned long ret;
--
1.8.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists