diff options
author | John Reiser <jreiser@BitWagon.com> | 2008-01-30 13:33:13 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:13 +0100 |
commit | 6b8be6df7f971919622d152d144c8798ad7fd160 (patch) | |
tree | 8c7eabffa6402ab6e5c9306a8dac6a81d9347fae /include/linux/linkage.h | |
parent | fdfe8aa84dd78cfdff427d0520f5974fb5e9c220 (diff) | |
download | op-kernel-dev-6b8be6df7f971919622d152d144c8798ad7fd160.zip op-kernel-dev-6b8be6df7f971919622d152d144c8798ad7fd160.tar.gz |
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: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/linkage.h')
-rw-r--r-- | include/linux/linkage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h index ceeeb5e..3faf599 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -57,6 +57,10 @@ .size name, .-name #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 #define ENDPROC(name) \ .type name, @function; \ |