riscv/vdso: Refactor asm/vdso.h
authorTong Tiangen <tongtiangen@huawei.com>
Wed, 1 Sep 2021 02:46:19 +0000 (02:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 07:42:01 +0000 (09:42 +0200)
commit309fd6f1e7cfab072bfee0dafabb74649890aacc
treee58bb203a2c191feb83108b0e33433a2790c1d92
parentff26f96fe0a26c9dca942b667699a1f56f2888a1
riscv/vdso: Refactor asm/vdso.h

[ Upstream commit bb4a23c994aebcd96c567a0be8e964d516bd4a61 ]

The asm/vdso.h will be included in vdso.lds.S in the next patch, the
following cleanup is needed to avoid syntax error:

 1.the declaration of sys_riscv_flush_icache() is moved into asm/syscall.h.
 2.the definition of struct vdso_data is moved into kernel/vdso.c.
 2.the definition of VDSO_SYMBOL is placed under "#ifndef __ASSEMBLY__".

Also remove the redundant linux/types.h include.

Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/syscall.h
arch/riscv/include/asm/vdso.h
arch/riscv/kernel/syscall_table.c
arch/riscv/kernel/vdso.c