[LTP] [PATCH 2/2] fanotify: Rename fanotify_event_info_fid struct
Cyril Hrubis
chrubis@suse.cz
Tue Nov 5 14:04:12 CET 2019
Hi!
> To fix build on musl, which also defines fanotify_event_info_fid,
> but uses fsid_t type for fsid instead of __kernel_fsid_t.
>
> This fixes errors:
>
> fanotify13.c: In function ???do_test???:
> fanotify13.c:278:20: error: ???fsid_t??? {aka ???struct __fsid_t???} has no member named ???val???; did you mean ???__val????
> event_fid->fsid.val[0],
> ^~~
> ../../../../include/tst_test.h:49:53: note: in definition of macro ???tst_res???
> tst_res_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__)
> ^~~~~~~~~~~
> fanotify13.c:279:20: error: ???fsid_t??? {aka ???struct __fsid_t???} has no member named ???val???; did you mean ???__val????
> event_fid->fsid.val[1],
>
> musl (unlike glibc and uclibc-ng) defines fanotify_event_info_fid in
> fanotify.h and uses fsid_t as type for fanotify_event_info_fid.fsid
> member, which defines __val[2] (unlike val[2] in __kernel_fsid_t).
I don't know, this really sounds like a bug in musl.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list