e1281472ec
This requires to remove a lot of broken code until it's fixed in upstream. Added 2 patches from upcoming release. Signed-off-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From b8aebc83523691be2b37e87c62099d700b0473c7 Mon Sep 17 00:00:00 2001
|
|
From: Petr Vorel <petr.vorel@gmail.com>
|
|
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 <asm/posix_types.h> where it's defined we just
|
|
define the missing bit.
|
|
|
|
This fixes build error at least on musl.
|
|
|
|
Acked-by: Cyril Hrubis <chrubis@suse.cz>
|
|
Acked-by: Jan Stancek <jstancek@redhat.com>
|
|
Suggested-by: Jan Stancek <jstancek@redhat.com>
|
|
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
|
|
[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
|
|
|