diff options
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r-- | include/linux/compiler-gcc.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 763bbad1e258..25d3dd6b2702 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
@@ -84,14 +84,8 @@ | |||
84 | * to trace naked functions because then mcount is called without | 84 | * to trace naked functions because then mcount is called without |
85 | * stack and frame pointer being set up and there is no chance to | 85 | * stack and frame pointer being set up and there is no chance to |
86 | * restore the lr register to the value before mcount was called. | 86 | * restore the lr register to the value before mcount was called. |
87 | * | ||
88 | * The asm() bodies of naked functions often depend on standard calling | ||
89 | * conventions, therefore they must be noinline and noclone. | ||
90 | * | ||
91 | * GCC 4.[56] currently fail to enforce this, so we must do so ourselves. | ||
92 | * See GCC PR44290. | ||
93 | */ | 87 | */ |
94 | #define __naked __attribute__((naked)) noinline __noclone notrace | 88 | #define __naked __attribute__((naked)) notrace |
95 | 89 | ||
96 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | 90 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) |
97 | 91 | ||