[PATCH] riscv: vdso: fix build with llvm

Palmer Dabbelt palmer at rivosinc.com
Thu Nov 10 14:45:43 PST 2022


On Tue, 1 Nov 2022 02:29:43 +0800, Jisheng Zhang wrote:
> Even after commit 89fd4a1df829 ("riscv: jump_label: mark arguments as
> const to satisfy asm constraints"), building with CC_OPTIMIZE_FOR_SIZE
> + LLVM=1 can reproduce below build error:
> 
>   CC      arch/riscv/kernel/vdso/vgettimeofday.o
> In file included from <built-in>:4:
> In file included from lib/vdso/gettimeofday.c:5:
> In file included from include/vdso/datapage.h:17:
> In file included from
> include/vdso/processor.h:10:
> In file included from
> arch/riscv/include/asm/vdso/processor.h:7:
> In file included from
> include/linux/jump_label.h:112:
> arch/riscv/include/asm/jump_label.h:42:3: error:
> invalid operand fo
> r inline asm constraint 'i'
>                 "       .option push                            \n\t"
>                 ^
> 1 error generated.
> 
> [...]

Applied, thanks!

[1/1] riscv: vdso: fix build with llvm
      https://git.kernel.org/palmer/c/50f4dd657a0f

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>



More information about the linux-riscv mailing list