Patch "selftests/memfd: Fix unknown type name build failure" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests/memfd: Fix unknown type name build failure

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-memfd-fix-unknown-type-name-build-failure.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From hargar@xxxxxxxxxxxxxxxxxxx  Sun May 28 08:40:32 2023
From: Hardik Garg <hargar@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 May 2023 16:21:36 -0700
Subject: selftests/memfd: Fix unknown type name build failure
To: stable@xxxxxxxxxxxxxxx
Cc: shuah@xxxxxxxxxx, jeffxu@xxxxxxxxxx, linux-kselftest@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, code@xxxxxxxxxxx, niyelchu@xxxxxxxxxxxxxxxxxxx
Message-ID: <20230526232136.255244-1-hargar@xxxxxxxxxxxxxxxxxxx>

From: Hardik Garg <hargar@xxxxxxxxxxxxxxxxxxx>

Partially backport v6.3 commit 11f75a01448f ("selftests/memfd: add tests
for MFD_NOEXEC_SEAL MFD_EXEC") to fix an unknown type name build error.
In some systems, the __u64 typedef is not present due to differences in
system headers, causing compilation errors like this one:

fuse_test.c:64:8: error: unknown type name '__u64'
   64 | static __u64 mfd_assert_get_seals(int fd)

This header includes the  __u64 typedef which increases the likelihood
of successful compilation on a wider variety of systems.

Signed-off-by: Hardik Garg <hargar@xxxxxxxxxxxxxxxxxxx>
Reviewed-by: Tyler Hicks (Microsoft) <code@xxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 tools/testing/selftests/memfd/fuse_test.c |    1 +
 1 file changed, 1 insertion(+)

--- a/tools/testing/selftests/memfd/fuse_test.c
+++ b/tools/testing/selftests/memfd/fuse_test.c
@@ -22,6 +22,7 @@
 #include <linux/falloc.h>
 #include <fcntl.h>
 #include <linux/memfd.h>
+#include <linux/types.h>
 #include <sched.h>
 #include <stdio.h>
 #include <stdlib.h>


Patches currently in stable-queue which might be from hargar@xxxxxxxxxxxxxxxxxxx are

queue-5.15/selftests-memfd-fix-unknown-type-name-build-failure.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux