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: 13312256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F59EC001B0 for ; Thu, 13 Jul 2023 13:55:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 76720900019; Thu, 13 Jul 2023 09:55:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7170990000B; Thu, 13 Jul 2023 09:55:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CCE6900019; Thu, 13 Jul 2023 09:55:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 341DE90000B for ; Thu, 13 Jul 2023 09:55:00 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 0B0921C7E24 for ; Thu, 13 Jul 2023 13:55:00 +0000 (UTC) X-FDA: 81006734760.17.7B44A54 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf22.hostedemail.com (Postfix) with ESMTP id 45E32C0019 for ; Thu, 13 Jul 2023 13:54:58 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf22.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689256498; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Djiu/9OJ7MlYuTUobmA/ktywqApJW6btXzTBM5bZSFY=; b=enAUV3GgUPv8TpgNnvo6bCrmCpKidJgUTLR/MbcLLtZ074nheal3kgIRX4tmiGRUCzC9J7 wHPLjbB5C3lN6QrHLFf6xZYWDzsk1p+5YWgxSpzpYmFTeWVZdvnUaWJbFVmCu573kVW4nv at18fceWxrFRPqIUIs6EvDGWnAwbZiY= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf22.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689256498; a=rsa-sha256; cv=none; b=DG+PJgMAedOpguiyRZadsytAOlKqa9aXCKiWYj9Ac3095blI2k1l9XYCh10mTylKzngCa6 nhpe7/E6d5lfLwxv9SZIsBHhWIOniAppNxKRl8z7BictRmncYs+NTHPPgSsjXFsN/66bEq djEVtJcLNNzZXk94b3HdKwuTAorTJc0= 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-Rspamd-Queue-Id: 45E32C0019 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: brtnfagoft7dxtxn6jcxef4unmnn6r7c X-HE-Tag: 1689256498-673882 X-HE-Meta: U2FsdGVkX1/E1pKxjR8f8Arc5hLHM1TyuisZF0tQIloW11325Gxl6RQtKCUdcirBpE+jgbRmXy+dTiD5bbYso8gEl6Bq00cMDboks56XFkmPmAaImqCPAFKE83V8f26C14ZDiqTVPZLpdMvKH/4Ug9xZ21hQ1jkaXm5afIntf47UyKeBv7ZsA/f69X2iUQHFd6lgp82p3AkzN5Gj3tkVTMbJK+kbnnSACy/8U+ryKPPypodVtHN1aJaC75GIntXZ2vM4JmBxykZUDqYBVL9I9hN5xTbBsOTJ74+CN3Wm25amkoBsXJJdElRMR2VieI2yHyrkG7O76MrI3ZErvhJzvVjonF/V7CGqBcQF85XbAoTriav0975qZNIYMw3iJZF0A1BgHjSulwegHwyLNLQVyOtYixZWJab28ewWalor3dpjtxfKiZU00GtUBItUlPb6unEgTWeugmto7aoDsjKoJf9VeD3b47Y15j9NO+DrJZNGak+albtW6v0VW8gqu50t5ZCumoEP5ld25e4Gh5rzEpUlzwa2U1QkZcnVpfuzlYcWGu7iPUveYcDzRhjrC8bWW9PVCRL53QyvNf0MBhp1fzoC7k/Ddp7WgzarriWXHzwWUmMfwXQnZXnpxdWdVUgfPetITAKbNFqzfHkieYBYdtDKJxS08Ffx0dli66yaoBBihCH5/TH/W+xj9r+1km5+S44gqNPFLkwiL/oJ1S9l/RCEb7KCN3uycmNwti9vjHPv63xeWYtRBuHxTz36gP8g/QIugOI7EAFx8VrXMIWhIlNG5xd2kCQF2JCKyrxeTWDARv3NYwNpK5ArgAVd0tSS0ZOisYGYHpAX5bNdTn+oNZQEd2OVtEbgWXOOi6YcBIXnE3raHYZeyblbsal4Zt5CW1btimi169Rd9DMuTsQkRQXOjLJCTcAGPe+AagTA4lSdyWdxB4slRwko6akmE7S9xOumPYU/lVqiYiyvg7t udGsegKn FfvdBAWf/ZoYU/X9mufKvVRQRiQdEuadTr1UnfEwOB3bsZ3vgP4NjRzhpuqDBEmjqWhcNRiWcUJliSYLX7LOOcblrKTSb1gdcN9pY5o4ka3qqamIRHKx42t2Nbyx82orhbIr41kWu9bpcvId3lnWE1i33qVumDwVuP4iVtIasd4eMuX/Z04UeCIfGVMSC3se8lb/2O4un74fp5SVbe/1Z00PlK1m8dwF3jLsYhG7bROUWgjQ= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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