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: Jason A. Donenfeld
Date: Mon Nov 28 2022 - 16:12:37 EST


Hi Arnd,

On Mon, Nov 28, 2022 at 10:11 PM Arnd Bergmann <arnd@xxxxxxxx> wrote:
>
> 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.

Oh okay, thanks! I'll look into that.

Jason