[PATCH] riscv: Fix vdso_install target with CONFIG_COMPAT=y

Guo Ren guoren at kernel.org
Sun Jul 17 07:31:10 PDT 2022


On Thu, Jul 14, 2022 at 7:21 PM Ben Hutchings <ben at decadent.org.uk> wrote:
>
> The recipe for vdso_install in arch/riscv/Makefile invokes targets of
> the same name in arch/riscv/kernel/vdso and .../compat_vdso, but the
> target in the latter is called compat_vdso_install.  Change the
> recipe to use the right target name.
>
> Fixes: 0715372a06ce ("riscv: compat: vdso: Add COMPAT_VDSO base code ...")
> Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
> ---
>  arch/riscv/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
> index 34cf8a598617..ee763562895c 100644
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@ -110,7 +110,7 @@ PHONY += vdso_install
>  vdso_install:
>         $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@
>         $(if $(CONFIG_COMPAT),$(Q)$(MAKE) \
> -               $(build)=arch/riscv/kernel/compat_vdso $@)
> +               $(build)=arch/riscv/kernel/compat_vdso compat_vdso_install)
Good catch, but what's the problem you've met?

>
>  ifeq ($(KBUILD_EXTMOD),)
>  ifeq ($(CONFIG_MMU),y)



-- 
Best Regards
 Guo Ren



More information about the linux-riscv mailing list