public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] riscv/vdso: fix missing vdso_data declaration
@ 2022-07-13 22:06 Ben Dooks
  2022-07-14  6:34 ` Conor.Dooley
  0 siblings, 1 reply; 9+ messages in thread
From: Ben Dooks @ 2022-07-13 22:06 UTC (permalink / raw)
  To: linux-riscv
  Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, Sudip Mukherjee,
	Jude Onyenegecha, Ben Dooks

The vdso_data is defined by has no declaration as the
arch/riscv/kernel/vdso.c does not include asm/vdso/vsyscall.h
for the definition. Fix the following sparse warning by
adding in the asm/vdso/vsyscall.h

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

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
---
 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 69b05b6c181b..7564f0208957 100644
--- a/arch/riscv/kernel/vdso.c
+++ b/arch/riscv/kernel/vdso.c
@@ -13,6 +13,7 @@
 #include <linux/err.h>
 #include <asm/page.h>
 #include <asm/vdso.h>
+#include <asm/vdso/vsyscall.h>
 #include <linux/time_namespace.h>
 
 #ifdef CONFIG_GENERIC_TIME_VSYSCALL
-- 
2.35.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-10-05 14:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-13 22:06 [PATCH] riscv/vdso: fix missing vdso_data declaration Ben Dooks
2022-07-14  6:34 ` Conor.Dooley
2022-08-11 21:06   ` Palmer Dabbelt
2022-08-11 21:26     ` Conor.Dooley
2022-08-14 16:10       ` Conor.Dooley
2022-08-18 23:01         ` Palmer Dabbelt
2022-08-19  7:08           ` Conor.Dooley
2022-09-15 18:51             ` Conor.Dooley
2022-10-05 14:13               ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox