From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBZ3N-002Sox-Tb for linux-um@lists.infradead.org; Wed, 13 Jul 2022 09:53:11 +0000 Date: Wed, 13 Jul 2022 11:53:03 +0200 From: "Jason A. Donenfeld" Subject: Re: [PATCH] um: seed rng using host OS rng Message-ID: References: <20220712232738.77737-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: Johannes Berg Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Hi Johannes, Thanks for the review. On Wed, Jul 13, 2022 at 09:05:03AM +0200, Johannes Berg wrote: > On Wed, 2022-07-13 at 01:27 +0200, Jason A. Donenfeld wrote: > > > > +++ b/arch/um/include/shared/os.h > > @@ -11,6 +11,12 @@ > > #include > > #include > > #include > > +/* This is to get size_t */ > > +#ifndef __UM_HOST__ > > +#include > > +#else > > +#include > > +#endif > > > > #define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR)) > > > > @@ -243,6 +249,7 @@ extern void stack_protections(unsigned long address); > > extern int raw(int fd); > > extern void setup_machinename(char *machine_out); > > extern void setup_hostinfo(char *buf, int len); > > +extern ssize_t os_getrandom(void *buf, size_t len, unsigned int flags); > > For me, this doesn't compile, and per the man-page on my system, ssize_t > requires , not ? What you say about types.h strikes me as true from how libc programming usually works everywhere else. But I actually copy and pasted that snippet, including the comment, from user.h. So I guess user.h doesn't break because of something else. Anyway, I'll change it to sys/types.h and send a v2. Jason _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um