[PATCH 2/3] ftrace: move notrace to compiler.h

From: Steven Rostedt
Date: Thu Aug 14 2008 - 23:01:39 EST


The notrace define belongs in compiler.h so that it can be used in
init.h

Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
---
include/linux/compiler.h | 2 ++
include/linux/linkage.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-tip.git/include/linux/compiler.h
===================================================================
--- linux-tip.git.orig/include/linux/compiler.h 2008-08-14 22:42:59.000000000 -0400
+++ linux-tip.git/include/linux/compiler.h 2008-08-14 22:43:16.000000000 -0400
@@ -44,6 +44,8 @@ extern void __chk_io_ptr(const volatile
# error Sorry, your compiler is too old/not recognized.
#endif

+#define notrace __attribute__((no_instrument_function))
+
/* Intel compiler defines __GNUC__. So we will overwrite implementations
* coming from above header files here
*/
Index: linux-tip.git/include/linux/linkage.h
===================================================================
--- linux-tip.git.orig/include/linux/linkage.h 2008-08-14 22:42:59.000000000 -0400
+++ linux-tip.git/include/linux/linkage.h 2008-08-14 22:43:16.000000000 -0400
@@ -4,8 +4,6 @@
#include <linux/compiler.h>
#include <asm/linkage.h>

-#define notrace __attribute__((no_instrument_function))
-
#ifdef __cplusplus
#define CPP_ASMLINKAGE extern "C"
#else

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/