Message ID | 20230717103152.202078-4-ryan.roberts@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1025487vqt; Mon, 17 Jul 2023 03:37:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6MGyuenbLc52thfp6kgfRpm5ee8kw+8+1azWmyKjnBoea0rtxQwCE1MOnlRQ/u4sRDj04 X-Received: by 2002:a17:906:3f54:b0:97e:17cc:cc95 with SMTP id f20-20020a1709063f5400b0097e17cccc95mr8618389ejj.36.1689590255475; Mon, 17 Jul 2023 03:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689590255; cv=none; d=google.com; s=arc-20160816; b=HKEf6Mc4gDWHlDAgLSvAL3ZPao0E7Putf0hi/RY0V8Fp/8+DE8h81kO1bJcZ5g/u6k qQRQMOHjEWz1MqqLlmXOygevVFH0LdQPaRn7BbUSjmuTvoDciZkmpviKW2qENPVdwu/i z1hOuYqUEHhQ3BOB4L855mV0mXhKHPMZgB6lLkndzOXgCbcHbzcB5+7g2tnW7tX+Imk+ JMuP4vRm+8UOGDJnnHmHQAE8OOGhg++rmj5/9eHvuNotI6Q/PwkV7PlU+wYv3IUxa8v+ k8wzKTrQJSEc1bFyHMpqfHfAj2G9p7q0zA+XChrZY6AsZ9uBq/Ss0nPyQiJnzVHjJQ6N DnnA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W95hEJNsKwhNPSMzODBmivBuPCYdlHmjU8Wbx+BJ5Yw=; fh=OUPfCZjK3Gm4uAxJmzTYkNGoALdOI9ZG4q/pkSTXiCE=; b=Qryv47dsaEzz5yo/RO8DBAN1zXbLmPUie4VUvbi6NxoWBkyyJHNc2UbW0lAiAeeOpo v4fhPH91i+ceXtCqNx7eBvrzYvUT92digYGV/51KDZH2ZXiTDt6J1XWOtktNhqJCLR1G kvEYH5ZGVhS00rM+QBbXzgQDvV6uUGCBZVZEt4lUEcm2iZp0gsPgS8tp78AaRKNvB9M6 3cLnW+M2pjE+VkvrZRNU0pYfFY0SrLoHddzwlr4+XjYGHFqliaFH9mlVb33lJ6DAVsCa JsepRLl5og7+r98S7rEInmhpxpOzHr1txpIHy4ZFQU1TUgE+woHdK3mTS4WMdzVjVJel YYsw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg17-20020a17090776f100b0098874379199si13157696ejc.163.2023.07.17.03.37.10; Mon, 17 Jul 2023 03:37:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbjGQKcR (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Mon, 17 Jul 2023 06:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbjGQKcN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Jul 2023 06:32:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7338D118; Mon, 17 Jul 2023 03:32:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 803E4D75; Mon, 17 Jul 2023 03:32:55 -0700 (PDT) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 872443F67D; Mon, 17 Jul 2023 03:32:10 -0700 (PDT) From: Ryan Roberts <ryan.roberts@arm.com> To: "Andrew Morton" <akpm@linux-foundation.org>, "Shuah Khan" <shuah@kernel.org>, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= <jglisse@redhat.com>, "David Hildenbrand" <david@redhat.com>, "Mark Brown" <broonie@kernel.org>, "John Hubbard" <jhubbard@nvidia.com>, "Florent Revest" <revest@chromium.org>, Peter Xu <peterx@redhat.com> Cc: Ryan Roberts <ryan.roberts@arm.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 3/8] selftests/mm: Enable mrelease_test for arm64 Date: Mon, 17 Jul 2023 11:31:47 +0100 Message-Id: <20230717103152.202078-4-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230717103152.202078-1-ryan.roberts@arm.com> References: <20230717103152.202078-1-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771663791658981574 X-GMAIL-MSGID: 1771663791658981574 |
Series |
selftests/mm fixes for arm64
|
|
Commit Message
Ryan Roberts
July 17, 2023, 10:31 a.m. UTC
mrelease_test defaults to defining __NR_pidfd_open and __NR_process_mrelease syscall numbers to -1, if they are not defined anywhere else, and the suite would then be marked as skipped as a result. arm64 (at least the stock debian toolchain that I'm using) requires including <sys/syscall.h> to pull in the defines for these syscalls. So let's add this header. With this in place, the test is passing on arm64. Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> Reviewed-by: David Hildenbrand <david@redhat.com> --- tools/testing/selftests/mm/mrelease_test.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/mm/mrelease_test.c b/tools/testing/selftests/mm/mrelease_test.c index dca21042b679..d822004a374e 100644 --- a/tools/testing/selftests/mm/mrelease_test.c +++ b/tools/testing/selftests/mm/mrelease_test.c @@ -7,6 +7,7 @@ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> +#include <sys/syscall.h> #include <sys/wait.h> #include <unistd.h> #include <asm-generic/unistd.h>