Message ID | 20230724082522.1202616-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:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1657092vqg; Mon, 24 Jul 2023 01:38:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgtXvy2Xh8ClVk9OSoiba5pSaY7ibsykj+oFJTtmSMTNIOCqYRB4ke3EqlHxMFjdZ/ud9E X-Received: by 2002:a05:6a20:2453:b0:137:9622:17d1 with SMTP id t19-20020a056a20245300b00137962217d1mr7876793pzc.27.1690187905318; Mon, 24 Jul 2023 01:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690187905; cv=none; d=google.com; s=arc-20160816; b=0TfoUKUvnevp49dn7pgB6Zt3AMKruyq4ZzzqNwCRWzoo4ZkAbzvdtNAf9BKRUuNUlD M2wZ6s0iqDqxmDxgJEVo1mCVo6i3eh02tIzi6wOfuRGeSSQhqxEWtFmoIVtnnhvh5S7H XaMWGzu0LNldKCM/IU1Kjfl3vGJuldYwNw4Otd2T8jgvgWcAxuH5C0V3ws89ih2MhE4C u8KnMKeEJyeHODQQlIOJ56WmP45r9SIlQCjUfmu4tQCovCTTccennFsHqSjOxOBNbTfN bash2w2AAhA4nChUZY9Jw37y1lx41E8xw+wXONMOoiP+oOp2JlG3HZ7d7Of+QAAUVIkg 08Nw== 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=+gbe2Lov6qmOHVSUu3pkHDpd9c8tQzyYAgTsJk6v9w0=; fh=6rhI9kvwCMo+fckRKZYXD+Cg7edipvyuIhlyok3MppU=; b=PDDK9UQx5tr+4Yp6R4SZ4rHKaZNAPqQsgHjX69HUtT1RXpBEefdxPo7KkagVcBlK+7 TIcHdP85Pli1M2DfqM7+6vci9OQdunRXkrZK20x4n0OIcoGQQ4m/OkAUTpTvN0d3+YIR htEV9ehBFFY1LUAfaHOeS8roJ4hYYfzuCBRKLP8xvfFpeKjFzEeM+xMlpvZ59wFbfCMv q73+21fhtEKxYaXjvd6Qr0DEaP5WGZ5FIo/dFws1kt3hmomTrJfUbeJBrjoWAzffSRii q+rY0wZB5GOhBJvicPjEh/wgOcvER+Q0t0wWYU405SHiDYy9Xoj5EbNFmKPxi9/2msMF 6DZg== 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 x63-20020a638642000000b0054fd35b2dbcsi8203838pgd.350.2023.07.24.01.38.11; Mon, 24 Jul 2023 01:38:25 -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 S231473AbjGXIZr (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Mon, 24 Jul 2023 04:25:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbjGXIZk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Jul 2023 04:25:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4C13134; Mon, 24 Jul 2023 01:25:38 -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 C54A715A1; Mon, 24 Jul 2023 01:26:21 -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 E5F693F67D; Mon, 24 Jul 2023 01:25:36 -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 v3 3/8] selftests/mm: Enable mrelease_test for arm64 Date: Mon, 24 Jul 2023 09:25:17 +0100 Message-Id: <20230724082522.1202616-4-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230724082522.1202616-1-ryan.roberts@arm.com> References: <20230724082522.1202616-1-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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: 1772290472925688353 X-GMAIL-MSGID: 1772290472925688353 |
Series |
selftests/mm fixes for arm64
|
|
Commit Message
Ryan Roberts
July 24, 2023, 8:25 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. Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Ryan Roberts <ryan.roberts@arm.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>