Messages in this thread Patch in this message | | | Date | Thu, 14 Aug 2008 22:47:18 -0400 | From | Steven Rostedt <> | Subject | [PATCH 2/3] ftrace: move notrace to compiler.h |
| |
The notrace define belongs in compiler.h so that it can be used in init.h
Signed-off-by: Steven Rostedt <srostedt@redhat.com> --- 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 --
| |