Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 02:55:49PM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 13:38:06 Alasdair G Kergon wrote: > > On Tue, Feb 17, 2015 at 10:08:56AM +0100, Arnd Bergmann wrote: > > > The normal way to do this in kernel headers is to use linux/types.h > > > but change the data struc

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 13:38:06 Alasdair G Kergon wrote: > On Tue, Feb 17, 2015 at 10:08:56AM +0100, Arnd Bergmann wrote: > > The normal way to do this in kernel headers is to use linux/types.h > > but change the data structures to use __u64 instead of uint64_t > > to avoid the build error. >

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-17 Thread Alasdair G Kergon
On Tue, Feb 17, 2015 at 10:08:56AM +0100, Arnd Bergmann wrote: > The normal way to do this in kernel headers is to use linux/types.h > but change the data structures to use __u64 instead of uint64_t > to avoid the build error. That's what happened to dm-ioctl.h. (Or someone could adjust linux/typ

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:18 Mikko Rapeli wrote: > --- a/include/uapi/linux/dm-log-userspace.h > +++ b/include/uapi/linux/dm-log-userspace.h > @@ -7,6 +7,11 @@ > #ifndef __DM_LOG_USERSPACE_H__ > #define __DM_LOG_USERSPACE_H__ > > +#ifdef __KERNEL__ > +#include > +#else > +#include > +

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-16 Thread Mikko Rapeli
On Mon, Feb 16, 2015 at 06:32:54PM -0500, Mike Snitzer wrote: > On Mon, Feb 16 2015 at 6:05pm -0500, > Mikko Rapeli wrote: > > > Fixes compilation error: > > > > linux/dm-log-userspace.h:416:2: error: unknown type name ‘uint64_t’ > > What userspace code are you compiling? Do you have a feel f

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-16 Thread Mike Snitzer
On Mon, Feb 16 2015 at 6:05pm -0500, Mikko Rapeli wrote: > Fixes compilation error: > > linux/dm-log-userspace.h:416:2: error: unknown type name ‘uint64_t’ What userspace code are you compiling? Do you have a feel for when this stopped working? -- To unsubscribe from this list: send the line