From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88427611A for ; Sun, 28 May 2023 19:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9F0CC433EF; Sun, 28 May 2023 19:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685301645; bh=2MoMWExnZSUBjyiAeqQHwxYdgC6498XHvZRNTygb2Yo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s7zmxDP3zIhVob9hGlRMWyHw8zmxK5XThZ0IHNFs/SVtmZ7gKqUX0dm1fTxZVLOnt bAj4ZpLm3yRtzDo46tPfbW1/acxt27vW4+jWI9klb4FGiSdp/4eraWmVAwnCBCM31o PxASMq6+JUOEXAWVjnLZLa1hCdz5dBDC8QEwt8as= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Hardik Garg , "Tyler Hicks (Microsoft)" Subject: [PATCH 4.19 111/132] selftests/memfd: Fix unknown type name build failure Date: Sun, 28 May 2023 20:10:50 +0100 Message-Id: <20230528190837.157878076@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230528190833.565872088@linuxfoundation.org> References: <20230528190833.565872088@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Hardik Garg 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 Reviewed-by: Tyler Hicks (Microsoft) Signed-off-by: Greg Kroah-Hartman --- 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 #include #include +#include #include #include #include