Skip to content

Commit d361390

Browse files
Jens RemusVasily Gorbik
authored andcommitted
s390/vdso: Use macros for annotation of asm functions
Use the macros SYM_FUNC_START() and SYM_FUNC_END() to annotate the functions in assembly. Signed-off-by: Jens Remus <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Acked-by: Vasily Gorbik <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 5cccfc8 commit d361390

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

arch/s390/kernel/vdso64/vdso_user_wrapper.S

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
* for details.
1414
*/
1515
.macro vdso_func func
16-
.globl __kernel_\func
17-
.type __kernel_\func,@function
18-
__ALIGN
19-
__kernel_\func:
16+
SYM_FUNC_START(__kernel_\func)
2017
CFI_STARTPROC
2118
aghi %r15,-STACK_FRAME_VDSO_OVERHEAD
2219
CFI_DEF_CFA_OFFSET (STACK_FRAME_USER_OVERHEAD + STACK_FRAME_VDSO_OVERHEAD)
@@ -32,7 +29,7 @@ __kernel_\func:
3229
CFI_RESTORE 15
3330
br %r14
3431
CFI_ENDPROC
35-
.size __kernel_\func,.-__kernel_\func
32+
SYM_FUNC_END(__kernel_\func)
3633
.endm
3734

3835
vdso_func gettimeofday
@@ -41,16 +38,13 @@ vdso_func clock_gettime
4138
vdso_func getcpu
4239

4340
.macro vdso_syscall func,syscall
44-
.globl __kernel_\func
45-
.type __kernel_\func,@function
46-
__ALIGN
47-
__kernel_\func:
41+
SYM_FUNC_START(__kernel_\func)
4842
CFI_STARTPROC
4943
svc \syscall
5044
/* Make sure we notice when a syscall returns, which shouldn't happen */
5145
.word 0
5246
CFI_ENDPROC
53-
.size __kernel_\func,.-__kernel_\func
47+
SYM_FUNC_END(__kernel_\func)
5448
.endm
5549

5650
vdso_syscall restart_syscall,__NR_restart_syscall

0 commit comments

Comments
 (0)