[PATCH] arch: vdso: remove if-conditionals of $(c-gettimeofday-y)

Palmer Dabbelt palmer at dabbelt.com
Tue Aug 24 20:49:39 PDT 2021


On Fri, 30 Jul 2021 22:57:33 PDT (-0700), masahiroy at kernel.org wrote:
> arm, arm64, mips, powerpc always select GENERIC_GETTIMEOFDAY, hence
> $(gettimeofday-y) never becomes empty.
>
> riscv conditionally selects GENERIC_GETTIMEOFDAY when MMU=y && 64BIT=y,
> but arch/riscv/kernel/vdso/vgettimeofday.o is built only under that
> condition. So, you can always define CFLAGS_vgettimeofday.o
>
> Remove all the meaningless conditionals.
>
> Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>
> ---
>
>  arch/riscv/kernel/vdso/Makefile     |  5 +----

Acked-by: Palmer Dabbelt <palmerdabbelt at google.com>



More information about the linux-arm-kernel mailing list