These are all functions which are invoked from elsewhere, so annotate them as global using the new SYM_FUNC_START and their ENDPROC's by SYM_FUNC_END. Now, ENTRY/ENDPROC can be forced to be undefined on X86, so do so.
Showing the changes to include/linux (1 of 26 files). Show all
Unified · Split
| @@ -112,15 +112,13 @@ · 111 unmodified lines | ||
| 112 | 112 | .globl name ASM_NL \ |
| 113 | 113 | name: |
| 114 | 114 | #endif |
| 115 | −#endif | |
| 116 | 115 | |
| 117 | −#ifndef CONFIG_X86_64 | |
| 118 | 116 | #ifndef ENTRY |
| 119 | 117 | /* deprecated, use SYM_FUNC_START */ |
| 120 | 118 | #define ENTRY(name) \ |
| 121 | 119 | SYM_FUNC_START(name) |
| 122 | 120 | #endif |
| 123 | −#endif /* CONFIG_X86_64 */ | |
| 121 | +#endif /* CONFIG_X86 */ | |
| 124 | 122 | #endif /* LINKER_SCRIPT */ |
| 125 | 123 | |
| 126 | 124 | #ifndef WEAK |
| @@ -135,9 +133,7 @@ · 8 unmodified lines | ||
| 135 | 133 | #define END(name) \ |
| 136 | 134 | .size name, .-name |
| 137 | 135 | #endif |
| 138 | −#endif /* CONFIG_X86 */ | |
| 139 | 136 | |
| 140 | −#ifndef CONFIG_X86_64 | |
| 141 | 137 | /* If symbol 'name' is treated as a subroutine (gets called, and returns) |
| 142 | 138 | * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of |
| 143 | 139 | * static analysis tools such as stack depth analyzer. |
| @@ -147,7 +143,7 @@ · 3 unmodified lines | ||
| 147 | 143 | #define ENDPROC(name) \ |
| 148 | 144 | SYM_FUNC_END(name) |
| 149 | 145 | #endif |
| 150 | −#endif /* CONFIG_X86_64 */ | |
| 146 | +#endif /* CONFIG_X86 */ | |
| 151 | 147 | |
| 152 | 148 | /* === generic annotations === */ |
| 153 | 149 | |