Commit 6b8be6df authored by John Reiser's avatar John Reiser Committed by Ingo Molnar

x86: add ENDPROC() markers

The ENDPROCs() were not used everywhere.  Some code used just END() instead,
while other code used nothing.  um/sys-i386/checksum.S didn't #include
<linux/linkage.h> .  I also got confused because gcc puts the
.type near the ENTRY, while ENDPROC puts it on the opposite end.

Signed off by: John Reiser <jreiser@BitWagon.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent fdfe8aa8
...@@ -49,7 +49,7 @@ ENTRY(__down_failed) ...@@ -49,7 +49,7 @@ ENTRY(__down_failed)
ENDFRAME ENDFRAME
ret ret
CFI_ENDPROC CFI_ENDPROC
END(__down_failed) ENDPROC(__down_failed)
ENTRY(__down_failed_interruptible) ENTRY(__down_failed_interruptible)
CFI_STARTPROC CFI_STARTPROC
...@@ -70,7 +70,7 @@ ENTRY(__down_failed_interruptible) ...@@ -70,7 +70,7 @@ ENTRY(__down_failed_interruptible)
ENDFRAME ENDFRAME
ret ret
CFI_ENDPROC CFI_ENDPROC
END(__down_failed_interruptible) ENDPROC(__down_failed_interruptible)
ENTRY(__down_failed_trylock) ENTRY(__down_failed_trylock)
CFI_STARTPROC CFI_STARTPROC
...@@ -91,7 +91,7 @@ ENTRY(__down_failed_trylock) ...@@ -91,7 +91,7 @@ ENTRY(__down_failed_trylock)
ENDFRAME ENDFRAME
ret ret
CFI_ENDPROC CFI_ENDPROC
END(__down_failed_trylock) ENDPROC(__down_failed_trylock)
ENTRY(__up_wakeup) ENTRY(__up_wakeup)
CFI_STARTPROC CFI_STARTPROC
...@@ -112,7 +112,7 @@ ENTRY(__up_wakeup) ...@@ -112,7 +112,7 @@ ENTRY(__up_wakeup)
ENDFRAME ENDFRAME
ret ret
CFI_ENDPROC CFI_ENDPROC
END(__up_wakeup) ENDPROC(__up_wakeup)
/* /*
* rw spinlock fallbacks * rw spinlock fallbacks
...@@ -132,7 +132,7 @@ ENTRY(__write_lock_failed) ...@@ -132,7 +132,7 @@ ENTRY(__write_lock_failed)
ENDFRAME ENDFRAME
ret ret
CFI_ENDPROC CFI_ENDPROC
END(__write_lock_failed) ENDPROC(__write_lock_failed)
ENTRY(__read_lock_failed) ENTRY(__read_lock_failed)
CFI_STARTPROC CFI_STARTPROC
...@@ -148,7 +148,7 @@ ENTRY(__read_lock_failed) ...@@ -148,7 +148,7 @@ ENTRY(__read_lock_failed)
ENDFRAME ENDFRAME
ret ret
CFI_ENDPROC CFI_ENDPROC
END(__read_lock_failed) ENDPROC(__read_lock_failed)
#endif #endif
...@@ -170,7 +170,7 @@ ENTRY(call_rwsem_down_read_failed) ...@@ -170,7 +170,7 @@ ENTRY(call_rwsem_down_read_failed)
CFI_ADJUST_CFA_OFFSET -4 CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
END(call_rwsem_down_read_failed) ENDPROC(call_rwsem_down_read_failed)
ENTRY(call_rwsem_down_write_failed) ENTRY(call_rwsem_down_write_failed)
CFI_STARTPROC CFI_STARTPROC
...@@ -182,7 +182,7 @@ ENTRY(call_rwsem_down_write_failed) ...@@ -182,7 +182,7 @@ ENTRY(call_rwsem_down_write_failed)
CFI_ADJUST_CFA_OFFSET -4 CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
END(call_rwsem_down_write_failed) ENDPROC(call_rwsem_down_write_failed)
ENTRY(call_rwsem_wake) ENTRY(call_rwsem_wake)
CFI_STARTPROC CFI_STARTPROC
...@@ -196,7 +196,7 @@ ENTRY(call_rwsem_wake) ...@@ -196,7 +196,7 @@ ENTRY(call_rwsem_wake)
CFI_ADJUST_CFA_OFFSET -4 CFI_ADJUST_CFA_OFFSET -4
1: ret 1: ret
CFI_ENDPROC CFI_ENDPROC
END(call_rwsem_wake) ENDPROC(call_rwsem_wake)
/* Fix up special calling conventions */ /* Fix up special calling conventions */
ENTRY(call_rwsem_downgrade_wake) ENTRY(call_rwsem_downgrade_wake)
...@@ -214,6 +214,6 @@ ENTRY(call_rwsem_downgrade_wake) ...@@ -214,6 +214,6 @@ ENTRY(call_rwsem_downgrade_wake)
CFI_ADJUST_CFA_OFFSET -4 CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
END(call_rwsem_downgrade_wake) ENDPROC(call_rwsem_downgrade_wake)
#endif #endif
...@@ -57,6 +57,10 @@ ...@@ -57,6 +57,10 @@
.size name, .-name .size name, .-name
#endif #endif
/* If symbol 'name' is treated as a subroutine (gets called, and returns)
* then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of
* static analysis tools such as stack depth analyzer.
*/
#ifndef ENDPROC #ifndef ENDPROC
#define ENDPROC(name) \ #define ENDPROC(name) \
.type name, @function; \ .type name, @function; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment