History

x86/asm/32: Change all ENTRY+ENDPROC to SYM_FUNC_*

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.

Jiri Slaby committed 7 years ago

Commit 6d685e51 parent 5e6330626 files · +104 −108Browse files

Showing the changes to include/linux (1 of 26 files). Show all

Unified · Split

include/linux/linkage.h+2−6
@@ -112,15 +112,13 @@ · 111 unmodified lines
112112 .globl name ASM_NL \
113113 name:
114114 #endif
115−#endif
116115
117−#ifndef CONFIG_X86_64
118116 #ifndef ENTRY
119117 /* deprecated, use SYM_FUNC_START */
120118 #define ENTRY(name) \
121119 SYM_FUNC_START(name)
122120 #endif
123−#endif /* CONFIG_X86_64 */
121+#endif /* CONFIG_X86 */
124122 #endif /* LINKER_SCRIPT */
125123
126124 #ifndef WEAK
@@ -135,9 +133,7 @@ · 8 unmodified lines
135133 #define END(name) \
136134 .size name, .-name
137135 #endif
138−#endif /* CONFIG_X86 */
139136
140−#ifndef CONFIG_X86_64
141137 /* If symbol 'name' is treated as a subroutine (gets called, and returns)
142138 * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of
143139 * static analysis tools such as stack depth analyzer.
@@ -147,7 +143,7 @@ · 3 unmodified lines
147143 #define ENDPROC(name) \
148144 SYM_FUNC_END(name)
149145 #endif
150−#endif /* CONFIG_X86_64 */
146+#endif /* CONFIG_X86 */
151147
152148 /* === generic annotations === */
153149

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t