[LTP] [PATCH] lapi/io_uring.h: Add declaration of __kernel_rwf_t

Petr Vorel pvorel@suse.cz
Fri Jul 17 13:04:08 CEST 2020


Hi,

> > how about the follwing change

> > +#ifdef __CHECKER__
> > +#define __bitwise__ __attribute__((bitwise))
> > +#else
> > +#define __bitwise__
> > +#endif
> > +#define __bitwise __bitwise__
> > +
> > +#ifndef __kernel_rwf_t
> > +typedef int __bitwise __kernel_rwf_t;
> > +#endif

> > Also, I think we should replace _u32 with uint32 in lapi/loop.h if we 
> > don't want to include linux kernel header for single use.

> The whole __bitwise is used only by a sparse checker, there is no point
> to include it in LTP. So we can just typedef the __kernel_rwf_t to int.
Make sense, going to push this variant.

Kind regards,
Petr


More information about the ltp mailing list