Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp149151rwd; Fri, 26 May 2023 16:45:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6P8zRKBVDaaLezTRY1/boeUvRlflSD76NJzHNUodv0VkUkH9BUnxgo17LlpbxDxS6CcW4e X-Received: by 2002:a05:6a00:9a9:b0:64b:50:2410 with SMTP id u41-20020a056a0009a900b0064b00502410mr5914290pfg.19.1685144710467; Fri, 26 May 2023 16:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685144710; cv=none; d=google.com; s=arc-20160816; b=BG/riBZix/xZbM/b072uyUL1fPIQJDpAfG6kkFlZwFR7/SjnKZmktuj5VCG1d3Vw0G ux+gkev4cMQchiSMByl/IyA9HdXKFaGqF1W4MEMlCTOofbVV10MnEp0wzTa5lcgslvMs rm0IkuQHlx8/APngdO5TWZL5x4nH4fuUAqjI3TCDV14+qfqVvfuWXk/MkkPoJlP2yMhu EB1vniUfsRrGcmNxZpU+oW7VnnS7V9uhHAOZ+WlrxKogfHR+wSVNIvIKO2B1aDIKsrAT AzkP+FVFvuiO/PT+ESujgjLZskPAkwKjslL7fMyicfZr8IQkpVNI5Ep+6/p3tPzdArol Fo+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=KeAv1SsqvhLKQ2kZnNqph3bIRr9A1qo0PI6I0BS1voc=; b=Tp6CndvzfoNMqqerwRBiIDrfUvmN6RUKo8l0EA3U9vHtScYv3QCvglttwj8ZMdCpCC VmvxM5jfQsZ1Ub7GFmZS2WIgm2pcY3ZKtHyfiv9dFamnAzRFdEUxE1k/G/0BzBh/EW/k g6oKJfqLUyz3wij2mwCxsRqIlD2WLHalFfML0+aJnXSL1SJlH/2nAUzMGlViKbhwuDA8 sxhjKnqHbmo5/02ylgS7c8NfsJLDrs4+SLETAMb6fYW+wSazm6SAdRQpEzq1KTNeUNwH PBVu7+zwDGhRXBB1PITID/vhz+GCIYAPJT8S5SP8YwrgXNXapx+s+VKM4WJ62ynv11+m QULQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=PxtxmllN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a28-20020aa78e9c000000b0063b669ec9a0si5241093pfr.103.2023.05.26.16.44.54; Fri, 26 May 2023 16:45:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=PxtxmllN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbjEZXVs (ORCPT + 99 others); Fri, 26 May 2023 19:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjEZXVr (ORCPT ); Fri, 26 May 2023 19:21:47 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6248313D; Fri, 26 May 2023 16:21:46 -0700 (PDT) Received: from AZSP-HARGAR-02.corp.microsoft.com (unknown [131.107.147.31]) by linux.microsoft.com (Postfix) with ESMTPSA id A5AE120FBE82; Fri, 26 May 2023 16:21:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A5AE120FBE82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1685143305; bh=KeAv1SsqvhLKQ2kZnNqph3bIRr9A1qo0PI6I0BS1voc=; h=From:To:Cc:Subject:Date:From; b=PxtxmllNN4RsQNyL/pejoVLcQDB1rdI//xsA0z8SvBioWh2WnmI/z8alJJ56JveH2 gjen/ISdEsErk5VlcSU4u+q6tTwx2Bm5jhy+krQgX5EnsSdYPeO/GsMF67cjPKz7Ey OLY8dWEf7iJVb65CNeVSiX0Oqwg71TpEvLxDz4cc= From: Hardik Garg To: stable@vger.kernel.org Cc: shuah@kernel.org, jeffxu@google.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, code@tyhicks.com, niyelchu@linux.microsoft.com Subject: [PATCH 6.1 5.15 5.10 5.4 4.19 4.14] selftests/memfd: Fix unknown type name build failure Date: Fri, 26 May 2023 16:21:36 -0700 Message-Id: <20230526232136.255244-1-hargar@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/testing/selftests/memfd/fuse_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/memfd/fuse_test.c b/tools/testing/selftests/memfd/fuse_test.c index be675002f918..93798c8c5d54 100644 --- 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 -- 2.25.1