mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
76329c6939
ENTRY()/END()/WEAK() macros are deprecated and we should make use of the new SYM_*() macros [1] for better annotation of symbols. Replace the deprecated ones with the new ones and fix wrong usage of END()/ENDPROC() to correctly describe the symbols. [1] https://docs.kernel.org/core-api/asm-annotations.html Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20231024132655.730417-3-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
19 lines
367 B
ArmAsm
19 lines
367 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2017 SiFive
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
#include <asm/unistd.h>
|
|
|
|
.text
|
|
/* int __vdso_getcpu(unsigned *cpu, unsigned *node, void *unused); */
|
|
SYM_FUNC_START(__vdso_getcpu)
|
|
.cfi_startproc
|
|
/* For now, just do the syscall. */
|
|
li a7, __NR_getcpu
|
|
ecall
|
|
ret
|
|
.cfi_endproc
|
|
SYM_FUNC_END(__vdso_getcpu)
|