[LTP] [PATCH 1/1] fanotify: Fix missing __kernel_fsid_t definition
Cyril Hrubis
chrubis@suse.cz
Thu Oct 17 11:20:48 CEST 2019
Hi!
> > +#if !defined(FAN_REPORT_FID) && defined(HAVE_NAME_TO_HANDLE_AT)
> > +#include <asm/posix_types.h> // __kernel_fsid_t
> > +#endif
>
> Would an alternative that adds this type to lapi work?
> (just looking if we can avoid extra kernel include)
>
> typedef struct {
> int val[2];
> } lapi_fsid_t;
>
> #define __kernel_fsid_t lapi_fsid_t
This looks a bit safer to me as well.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list