From 70e2542e97f5515b3804496e15fcef437818757b Mon Sep 17 00:00:00 2001 From: Andy Caldwell Date: Fri, 15 Nov 2024 01:55:26 +0000 Subject: [PATCH] Add fanotify_event_info_fid to FAM-exempt types (backport ) (cherry picked from commit 73ce07ccefb2cb261ea6a1e7cbbcbedcb6569898) --- libc-test/build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 511e166d364ce..c4b344f41b028 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -4589,11 +4589,11 @@ fn test_linux(target: &str) { true } - // The `inotify_event` and `cmsghdr` types contain Flexible Array Member fields (the - // `name` and `data` fields respectively) which have unspecified calling convention. - // The roundtripping tests deliberately pass the structs by value to check "by value" - // layout consistency, but this would be UB for the these types. + // The following types contain Flexible Array Member fields which have unspecified calling + // convention. The roundtripping tests deliberately pass the structs by value to check "by + // value" layout consistency, but this would be UB for the these types. "inotify_event" => true, + "fanotify_event_info_fid" => true, "cmsghdr" => true, // FIXME: the call ABI of max_align_t is incorrect on these platforms: