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
112 .globl name ASM_NL \112 .globl name ASM_NL \
113 name:113 name:
114#endif114#endif
115#endif
116 115
117#ifndef CONFIG_X86_64
118#ifndef ENTRY116#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#endif120#endif
123#endif /* CONFIG_X86_64 */121#endif /* CONFIG_X86 */
124#endif /* LINKER_SCRIPT */122#endif /* LINKER_SCRIPT */
125 123
126#ifndef WEAK124#ifndef WEAK
@@ -135,9 +133,7 @@ · 8 unmodified lines
135#define END(name) \133#define END(name) \
136 .size name, .-name134 .size name, .-name
137#endif135#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 of138 * 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#endif145#endif
150#endif /* CONFIG_X86_64 */146#endif /* CONFIG_X86 */
151 147
152/* === generic annotations === */148/* === generic annotations === */
153 149

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