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 | .globl name ASM_NL \ | 112 | .globl name ASM_NL \ |
| 113 | name: | 113 | name: |
| 114 | #endif | 114 | #endif |
| 115 | #endif | ||
| 116 | 115 | ||
| 117 | #ifndef CONFIG_X86_64 | ||
| 118 | #ifndef ENTRY | 116 | #ifndef ENTRY |
| 119 | /* deprecated, use SYM_FUNC_START */ | 117 | /* deprecated, use SYM_FUNC_START */ |
| 120 | #define ENTRY(name) \ | 118 | #define ENTRY(name) \ |
| 121 | SYM_FUNC_START(name) | 119 | SYM_FUNC_START(name) |
| 122 | #endif | 120 | #endif |
| 123 | #endif /* CONFIG_X86_64 */ | 121 | #endif /* CONFIG_X86 */ |
| 124 | #endif /* LINKER_SCRIPT */ | 122 | #endif /* LINKER_SCRIPT */ |
| 125 | 123 | ||
| 126 | #ifndef WEAK | 124 | #ifndef WEAK |
| @@ -135,9 +133,7 @@ · 8 unmodified lines | |||
| 135 | #define END(name) \ | 133 | #define END(name) \ |
| 136 | .size name, .-name | 134 | .size name, .-name |
| 137 | #endif | 135 | #endif |
| 138 | #endif /* CONFIG_X86 */ | ||
| 139 | 136 | ||
| 140 | #ifndef CONFIG_X86_64 | ||
| 141 | /* If symbol 'name' is treated as a subroutine (gets called, and returns) | 137 | /* If symbol 'name' is treated as a subroutine (gets called, and returns) |
| 142 | * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of | 138 | * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of |
| 143 | * static analysis tools such as stack depth analyzer. | 139 | * static analysis tools such as stack depth analyzer. |
| @@ -147,7 +143,7 @@ · 3 unmodified lines | |||
| 147 | #define ENDPROC(name) \ | 143 | #define ENDPROC(name) \ |
| 148 | SYM_FUNC_END(name) | 144 | SYM_FUNC_END(name) |
| 149 | #endif | 145 | #endif |
| 150 | #endif /* CONFIG_X86_64 */ | 146 | #endif /* CONFIG_X86 */ |
| 151 | 147 | ||
| 152 | /* === generic annotations === */ | 148 | /* === generic annotations === */ |
| 153 | 149 | ||