[PATCH] riscv/vdso: fix missing vdso_data declaration
Conor.Dooley at microchip.com
Conor.Dooley at microchip.com
Wed Jul 13 23:34:36 PDT 2022
On 13/07/2022 23:06, Ben Dooks wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> 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 at sifive.com>
Reviewed-by: Conor Dooley <conor.dooley at microchip.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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
More information about the linux-riscv
mailing list