2022-11-28 21:26:31

by Jason A. Donenfeld

[permalink] [raw]
Subject: 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'?

Hi Arnd,

On Mon, Nov 28, 2022 at 10:11 PM Arnd Bergmann <[email protected]> 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