From patchwork Thu Jul 13 13:54:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 119920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1852937vqm; Thu, 13 Jul 2023 07:12:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEI6qTmO/sdYXE3OD5l409Jn/T8ORb/0cIW9Z1r8pte7tW3lQwJvZfcBtM/w1K3qT53B6NJ X-Received: by 2002:a2e:b056:0:b0:2b6:e623:7b57 with SMTP id d22-20020a2eb056000000b002b6e6237b57mr1449299ljl.25.1689257542494; Thu, 13 Jul 2023 07:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689257542; cv=none; d=google.com; s=arc-20160816; b=C1zdYmD/Wc9RT4BD+8Rngs1wSfgg6HgqfOA+eYoANWh0/BE25+7ZiZ3JhLoeEvgidU w/1f4JYpCr+GN3o9g0zhLCq81zsWkLJ1/JePL9EymkUta/BgL03xAnfnnsPFl9ANe/LL blvO2DZNj0iaEWgi/LyuWH+udZHxzLbf19zqKMHTqeVpJ3kWksVrkOusxKkzmU7Dt+7g eguIuVLL+npmCbSRYCXLA+CBBaAbjay5VAc7U9hl+JqL9szTptauwqdfF393wMtjvYFK b1+i9dbIqeFRzgJw3xGF7MXrPgVeNxHPE25n4TfQaJ9MA+lwC6FgiwD0DfGeu/TB1A+j mMoA== 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=Djiu/9OJ7MlYuTUobmA/ktywqApJW6btXzTBM5bZSFY=; fh=PBHZcfMfFxGGBVmDESRU6Gjyj3qxzeiTc8DMNv9diCw=; b=rWccwcV6fWLLX+wHXSpjJRGKM8q5f5hwGDoaoGFi9zRGURead1anJL8b2PU7WcPI8R u4bg6G1YocroxBGGTsPp++2yQXJkDnuRRcqOopslPW3gDdNsfc7a+pVSfALgwwBNn/jk AmBxm3QZE9JJNCJ0sQksEseEWxgG6s8uqk+9RqlJx29aFO9KGlEn3ePKaPKuTc6QZQ0X ieNB/gP5tr0VI66+Vf/ajdvtpib02SoSeiG9nnKQQYnllJDhm918ER1mTTHUBUSewB7D JVtECY8jY/Kf1cxne3qNk6rg2mcEqEYTX27Ex3llv5QkNbKiZVU3hVMDBarU7ExieFC8 nPiA== 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 b18-20020a170906d11200b00992ee6da875si7553590ejz.218.2023.07.13.07.11.57; Thu, 13 Jul 2023 07:12:22 -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 S232194AbjGMNzJ (ORCPT + 99 others); Thu, 13 Jul 2023 09:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231794AbjGMNy6 (ORCPT ); Thu, 13 Jul 2023 09:54:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B148F19B9; Thu, 13 Jul 2023 06:54:57 -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 F34181576; Thu, 13 Jul 2023 06:55:39 -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 E95573F73F; Thu, 13 Jul 2023 06:54:55 -0700 (PDT) From: Ryan Roberts To: Andrew Morton , Shuah Khan , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , David Hildenbrand , Mark Brown , John Hubbard , Florent Revest , "Liam R. Howlett" Cc: Ryan Roberts , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 4/9] selftests/mm: Enable mrelease_test for arm64 Date: Thu, 13 Jul 2023 14:54:35 +0100 Message-Id: <20230713135440.3651409-5-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230713135440.3651409-1-ryan.roberts@arm.com> References: <20230713135440.3651409-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: 1771314916714501876 X-GMAIL-MSGID: 1771314916714501876 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