Re: Missing include in sys/device.h

2021-09-28 Thread Ingo Schwarze
Hi Rafael, Rafael Sadowski wrote on Tue, Sep 28, 2021 at 08:22:06AM +0200: > On Mon Sep 27, 2021 at 11:20:55PM -0600, Theo de Raadt wrote: >> Oh, like how about you try compiling a kernel after your proposed diff? >> >> in userland - >>size_t comes from sys/types.h >>or a header file

Re: Missing include in sys/device.h

2021-09-28 Thread Rafael Sadowski
On Mon Sep 27, 2021 at 11:20:55PM -0600, Theo de Raadt wrote: > Oh, like how about you try compiling a kernel after your proposed diff? > > in userland - >size_t comes from sys/types.h >or a header file which pulls in sys/types.h, and there should be >no further new iteration added >

Re: Missing include in sys/device.h

2021-09-27 Thread Theo de Raadt
Oh, like how about you try compiling a kernel after your proposed diff? in userland - size_t comes from sys/types.h or a header file which pulls in sys/types.h, and there should be no further new iteration added in kernel - size_t comes from either sys/param.h or sys/types.h,

Missing include in sys/device.h

2021-09-27 Thread Rafael Sadowski
device.h misses a definition of size_t /usr/include/sys/device.h:128:2: error: unknown type name 'size_t' Index: device.h === RCS file: /cvs/src/sys/sys/device.h,v retrieving revision 1.55 diff -u -p -r1.55 device.h --- device.h