path: root/arch/microblaze
diff options
authorMinfei Huang <>2015-07-12 17:52:24 +0800
committerSteven Rostedt <>2015-07-20 22:30:53 -0400
commitc93bf928fea22c61f6b5c04786b325c9bfbc0462 (patch)
tree10c4ddd17f8b1e2e3040d98a90863a5841262620 /arch/microblaze
parentb838e1d96c613019095ba008afbee800977b0582 (diff)
ftrace: Format MCOUNT_ADDR address as type unsigned long
Always we use type unsigned long to format the ip address, since the value of ip address is never the negative. This patch uses type unsigned long, instead of long, to format the ip address. The code is more clearly to be viewed by using type unsigned long, although it is correct by using either unsigned long or long. Link: Cc: Minfei Huang <> Cc: "H. Peter Anvin" <> Cc: James Hogan <> Cc: Michal Simek <> Cc: Benjamin Herrenschmidt <> Cc: "David S. Miller" <> Signed-off-by: Minfei Huang <> Signed-off-by: Steven Rostedt <>
Diffstat (limited to 'arch/microblaze')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/ftrace.h b/arch/microblaze/include/asm/ftrace.h
index fd2fa2eca62f..da0144f40d99 100644
--- a/arch/microblaze/include/asm/ftrace.h
+++ b/arch/microblaze/include/asm/ftrace.h
@@ -3,7 +3,7 @@
-#define MCOUNT_ADDR ((long)(_mcount))
+#define MCOUNT_ADDR ((unsigned long)(_mcount))
#define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
#ifndef __ASSEMBLY__