From patchwork Mon Jul 17 10:31:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 121192 Return-Path: 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 + 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 ); 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 To: "Andrew Morton" , "Shuah Khan" , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , "David Hildenbrand" , "Mark Brown" , "John Hubbard" , "Florent Revest" , Peter Xu Cc: Ryan Roberts , 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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771663791658981574 X-GMAIL-MSGID: 1771663791658981574 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 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 Reviewed-by: David Hildenbrand --- 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 #include #include +#include #include #include #include