[PATCH] riscv: vdso: include vdso/vsyscall.h for vdso_data

Ben Dooks posted 1 patch 2 years, 7 months ago
arch/riscv/kernel/vdso.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] riscv: vdso: include vdso/vsyscall.h for vdso_data
Posted by Ben Dooks 2 years, 7 months ago
Add include of <vdso/vsyscall.h> to pull in the defition of vdso_data
to remove the following sparse warning:

arch/riscv/kernel/vdso.c:39:18: warning: symbol 'vdso_data' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/riscv/kernel/vdso.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c
index 9a68e7eaae4d..2cf76218a5bd 100644
--- a/arch/riscv/kernel/vdso.c
+++ b/arch/riscv/kernel/vdso.c
@@ -15,6 +15,7 @@
 #include <asm/vdso.h>
 #include <linux/time_namespace.h>
 #include <vdso/datapage.h>
+#include <vdso/vsyscall.h>
 
 enum vvar_pages {
 	VVAR_DATA_PAGE_OFFSET,
-- 
2.39.2
Re: [PATCH] riscv: vdso: include vdso/vsyscall.h for vdso_data
Posted by Palmer Dabbelt 2 years, 7 months ago
On Fri, 16 Jun 2023 12:43:57 +0100, Ben Dooks wrote:
> Add include of <vdso/vsyscall.h> to pull in the defition of vdso_data
> to remove the following sparse warning:
> 
> arch/riscv/kernel/vdso.c:39:18: warning: symbol 'vdso_data' was not declared. Should it be static?
> 
> 

Applied, thanks!

[1/1] riscv: vdso: include vdso/vsyscall.h for vdso_data
      https://git.kernel.org/palmer/c/54cdede08f2f

Best regards,
-- 
Palmer Dabbelt <palmer@rivosinc.com>
Re: [PATCH] riscv: vdso: include vdso/vsyscall.h for vdso_data
Posted by patchwork-bot+linux-riscv@kernel.org 2 years, 7 months ago
Hello:

This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Fri, 16 Jun 2023 12:43:57 +0100 you wrote:
> Add include of <vdso/vsyscall.h> to pull in the defition of vdso_data
> to remove the following sparse warning:
> 
> arch/riscv/kernel/vdso.c:39:18: warning: symbol 'vdso_data' was not declared. Should it be static?
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> 
> [...]

Here is the summary with links:
  - riscv: vdso: include vdso/vsyscall.h for vdso_data
    https://git.kernel.org/riscv/c/54cdede08f2f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html