From b8aebc83523691be2b37e87c62099d700b0473c7 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Mon, 14 Oct 2019 15:35:53 +0200 Subject: [PATCH] fanotify: Fix missing __kernel_fsid_t definition which is needed for fallback definition when FAN_REPORT_FID is missing. Instead of including where it's defined we just define the missing bit. This fixes build error at least on musl. Acked-by: Cyril Hrubis Acked-by: Jan Stancek Suggested-by: Jan Stancek Signed-off-by: Petr Vorel [Upstream status: b8aebc83523691be2b37e87c62099d700b0473c7] --- testcases/kernel/syscalls/fanotify/fanotify.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testcases/kernel/syscalls/fanotify/fanotify.h b/testcases/kernel/syscalls/fanotify/fanotify.h index 1c7623d3b..435f100d8 100644 --- a/testcases/kernel/syscalls/fanotify/fanotify.h +++ b/testcases/kernel/syscalls/fanotify/fanotify.h @@ -126,6 +126,13 @@ struct fanotify_event_info_header { }; #ifdef HAVE_NAME_TO_HANDLE_AT +#ifndef __kernel_fsid_t +typedef struct { + int val[2]; +} lapi_fsid_t; +#define __kernel_fsid_t lapi_fsid_t +#endif + struct fanotify_event_info_fid { struct fanotify_event_info_header hdr; __kernel_fsid_t fsid; -- 2.23.0