Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1697237lqm; Fri, 3 May 2024 04:02:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8wA0cB/3n+4dMfcf7VbCoEkdVdHNvXgDi3owPUpCgYAs8DVcn3TETuTxEt/DDBzWFBuJP6kG8WkkZi/HQd/278/2Mj4FFZZsRtIwaew== X-Google-Smtp-Source: AGHT+IGS+7ba2m6D2Ii7t55/6UB6ILDW/iw1RxTkH/9/0KxggmrMVZkZqR/h9IxSUakje0M5Lyyv X-Received: by 2002:a17:90a:7782:b0:2ae:f95c:96b8 with SMTP id v2-20020a17090a778200b002aef95c96b8mr2267617pjk.15.1714734156786; Fri, 03 May 2024 04:02:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714734156; cv=pass; d=google.com; s=arc-20160816; b=lzKHmHxkaZ2d2C+BKV+5wR7Xz/VGlH6VCEfQeUqaIuQ1bWO/F/Oc1UNBzRSFcTa8vi P4ANpSdP20Xs2zIZD0t1RFY8uXjG+QP5+HgCHcXFEce4clX0qzH1aFAZqbAtBTdlRZzP jIsjCORoUp2KLrttI9kXQEgljLOHia7+f3En13ySZLRZgzBGZLNEcceWlnBxv61f5APT grmcobCrBzd9BiWvcbVw5B3jVL+uYD1K8zCzhzBQn9nwCftfkkV37EncJ3IK6DqPA04M HP5zHBLFVAnn1WPFDbt+hRH0/e/OzJu3KlUmc5qEAgHA2EfgrHuM1B779eFyr+eg9fzH fSYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=Y4BTj45ussAVNZV1MJdHNM84SJECJIwAFI45pVLDWC8=; fh=nK1mqH/2nDfbJH+afXQfEiy1fJCZLUOiOlIJGhRc0eE=; b=r6gJ4QlztVqAlWI+bewtwLoHM83kZ5DETwGCb3H05u3O4+bZ67xDCR0ynUEA0i9GhY /PqMTlN4C/vIAjKyzFYrcuz+sxHTKGf57rq1mtlQPdSxR6jdAqn3uYGhemaeUluCD8D1 19Ys9j/s31HGMuv/COjV3Rj14X+hIsSs64GmThxam9IjlU1vUm8zFqRReCbBoIokhDyd bLHexgjvYcSy7A6l8lpZOVpu8p9pz7zf9kEtNh9IXmhJQOGuuUDpqBj5bQdEzK9l/wsD uZI90M9/a0lNNRvEUobr7S88HzWKxncT5+LlUZxeJOESKBgoFMaiwnu7Ntx97lK0a2b5 sqZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-167558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lb18-20020a17090b4a5200b002b10d64d83esi2895320pjb.78.2024.05.03.04.02.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 04:02:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-167558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 728B8B20BA6 for ; Fri, 3 May 2024 11:02:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81FED152178; Fri, 3 May 2024 11:00:16 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE5B2139D12; Fri, 3 May 2024 11:00:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714734016; cv=none; b=TfJYMffRudrYxR2PhzGDcMhYaQcgkIYOkUinAdbRuiw1K/oHLHHz2ZaLhfB5+7glN0xeiOjdPsLFVMtgamVy3sgFoNR1SZFiNkkH7dHWEB+sZ9/Jm30yvJsBgHfhCXpsUXk9C8YWAgs961cQ+RZC4LzMtvBxeqF5jIx38gVmPVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714734016; c=relaxed/simple; bh=k4xkTuo7hYK9PbTnqwBgQ2Efeb49h1b70uqJXQeoiuI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=r8RvBQbuni2Dn7SokGCsPGlZpHB6DKt8g0SpVs0yj42cL25w9B7vaATU5wZHD2NHqNwan1+NnIAejogm06gGd5mPRKitNsZzl70Tc2j+edvvid6+8yFbPSFeEGNcz/DvU3JINjGMwgs/vgr0M7ckzF3GnHr+CgoEkjy39eAfEfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 69CEC2F4; Fri, 3 May 2024 04:00:38 -0700 (PDT) Received: from [10.57.67.51] (unknown [10.57.67.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D620B3F793; Fri, 3 May 2024 04:00:09 -0700 (PDT) Message-ID: <5f90431c-f27d-4b59-bf5a-32fd66101230@arm.com> Date: Fri, 3 May 2024 12:00:08 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/1] selftest mm/mseal: fix arm build Content-Language: en-GB To: jeffxu@chromium.org, Aishwarya TCV Cc: Liam.Howlett@oracle.com, akpm@linux-foundation.org, corbet@lwn.net, dave.hansen@intel.com, deraadt@openbsd.org, gregkh@linuxfoundation.org, groeck@chromium.org, jannh@google.com, jeffxu@google.com, jorgelo@chromium.org, keescook@chromium.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, merimus@google.com, pedro.falcato@gmail.com, rdunlap@infradead.org, sroettger@google.com, surenb@google.com, torvalds@linux-foundation.org, usama.anjum@collabora.com, willy@infradead.org References: <20240502225331.3806279-1-jeffxu@chromium.org> <20240502225331.3806279-2-jeffxu@chromium.org> From: Ryan Roberts In-Reply-To: <20240502225331.3806279-2-jeffxu@chromium.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/05/2024 23:53, jeffxu@chromium.org wrote: > From: Jeff Xu > > add include linux/mman.h to fix arm build > fix a typo > > Signed-off-by: Jeff Xu > Suggested-by: Ryan Roberts I confirm this has fixed our issue. Thanks! Tested-by: Ryan Roberts Reviewed-by: Ryan Roberts > --- > tools/testing/selftests/mm/mseal_test.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/mm/mseal_test.c b/tools/testing/selftests/mm/mseal_test.c > index ca8dbee0c612..41998cf1dcf5 100644 > --- a/tools/testing/selftests/mm/mseal_test.c > +++ b/tools/testing/selftests/mm/mseal_test.c > @@ -1,5 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > #define _GNU_SOURCE > +#include > #include > #include > #include > @@ -29,7 +30,7 @@ > # define PKEY_DISABLE_WRITE 0x2 > #endif > > -#ifndef PKEY_BITS_PER_KEY > +#ifndef PKEY_BITS_PER_PKEY > #define PKEY_BITS_PER_PKEY 2 > #endif >