Re: [ammarfaizi2-block:crng/random/vdso 20/22] include/uapi/asm-generic/unistd.h:890:34: error: 'sys_vgetrandom_alloc' undeclared here (not in a function); did you mean 'sys_getrandom'?

From: Arnd Bergmann
Date: Mon Nov 28 2022 - 16:11:14 EST


On Mon, Nov 28, 2022, at 22:03, Jason A. Donenfeld wrote:
> Hi Arnd,
>
> Please see below. It would seem that I can't so easily get rid of that
> #ifdef __ARCH_HAS afterall?
...
>> | ^~~~~~~~~
>> >> include/uapi/asm-generic/unistd.h:890:34: error: 'sys_vgetrandom_alloc' undeclared here (not in a function); did you mean 'sys_getrandom'?

No, this just means that some architectures require you to have the correct
prototype for the system call in include/linux/syscalls.h, without an #ifdef.

Arnd