Jelajahi Sumber

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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Steven Rostedt 16 tahun lalu
induk
melakukan
28614889bc
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 0
      include/linux/compiler.h
  2. 0 2
      include/linux/linkage.h

+ 2 - 0
include/linux/compiler.h

@@ -44,6 +44,8 @@ extern void __chk_io_ptr(const volatile void __iomem *);
 # error Sorry, your compiler is too old/not recognized.
 # error Sorry, your compiler is too old/not recognized.
 #endif
 #endif
 
 
+#define notrace __attribute__((no_instrument_function))
+
 /* Intel compiler defines __GNUC__. So we will overwrite implementations
 /* Intel compiler defines __GNUC__. So we will overwrite implementations
  * coming from above header files here
  * coming from above header files here
  */
  */

+ 0 - 2
include/linux/linkage.h

@@ -4,8 +4,6 @@
 #include <linux/compiler.h>
 #include <linux/compiler.h>
 #include <asm/linkage.h>
 #include <asm/linkage.h>
 
 
-#define notrace __attribute__((no_instrument_function))
-
 #ifdef __cplusplus
 #ifdef __cplusplus
 #define CPP_ASMLINKAGE extern "C"
 #define CPP_ASMLINKAGE extern "C"
 #else
 #else