Message ID | 20241209095019.1732120-8-kevin.brodsky@arm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 A2B96E77173 for <linux-mm@archiver.kernel.org>; Mon, 9 Dec 2024 09:50:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2FB6D8D0036; Mon, 9 Dec 2024 04:50:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 235378D0029; Mon, 9 Dec 2024 04:50:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0ADD48D0036; Mon, 9 Dec 2024 04:50:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DB9D88D0029 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 04:50:57 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 974558027C for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:50:57 +0000 (UTC) X-FDA: 82874950956.07.347A3CC Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf19.hostedemail.com (Postfix) with ESMTP id 349841A000B for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:50:34 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf19.hostedemail.com: domain of kevin.brodsky@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=kevin.brodsky@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733737846; a=rsa-sha256; cv=none; b=DKm9MyfsJvww/R9BvGIWDO5/JEpsSEMZhoJLW7paTJhE6+7JFd6loixGc9mbsKArLsME2Q Ri+6GcmJ2yXYFOKhewB+YFqJ152s9uL6YhedJ+fm0Rkr3mkPdx0QRERqu7JCHp7HdMj69S oi6epzRt/qzwYpCEW780QxoBhRpE+0M= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf19.hostedemail.com: domain of kevin.brodsky@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=kevin.brodsky@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733737846; 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=DPrNqYZIVPL79Qc1TOF3mtxorgRM38fEG2ZYgHTWBPY=; b=oV5rCIpkTCOQSWmmzaQWxp9yK8WWvnvpQkuCdwAiN3qMagYCUTUcwYaUetly7b0uAVNXjI F9ukAD0NCewdzZ8TfWDA3bdtyMGRki5NTd5a35J4HTc5fn+bZ4zJ/Y+Q8bM8uM40pvhfOM A1KI80DIQiPUBJokxmobBbMwsoxdSh8= 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 664AB113E; Mon, 9 Dec 2024 01:51:23 -0800 (PST) Received: from e123572-lin.arm.com (e123572-lin.cambridge.arm.com [10.1.194.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5CC003F720; Mon, 9 Dec 2024 01:50:53 -0800 (PST) From: Kevin Brodsky <kevin.brodsky@arm.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Kevin Brodsky <kevin.brodsky@arm.com>, akpm@linux-foundation.org, aruna.ramakrishna@oracle.com, catalin.marinas@arm.com, dave.hansen@linux.intel.com, joey.gouly@arm.com, keith.lucas@oracle.com, ryan.roberts@arm.com, shuah@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, x86@kernel.org Subject: [PATCH 07/14] selftests/mm: Define types using typedef in pkey-helpers.h Date: Mon, 9 Dec 2024 09:50:12 +0000 Message-ID: <20241209095019.1732120-8-kevin.brodsky@arm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241209095019.1732120-1-kevin.brodsky@arm.com> References: <20241209095019.1732120-1-kevin.brodsky@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 349841A000B X-Stat-Signature: 5gasmm4da9hk5ua3ny7wwqptd9je1t35 X-HE-Tag: 1733737834-3119 X-HE-Meta: U2FsdGVkX1/0OGeaaqRlQcep8V9KgLgaUeAsEMidEmRXePJlYBGmpWRm9XCFc2hH3jp6NtrqnhAkC4Vt2x+MqMDFh8x/17QSeWqiSCTTiy6IsI8HyqnqPHXOOEeBEqORE+zOTvMDeGkg8CzNogcvx8YBY6+CvI8I0wJTZx6n7VI7Tt8J02Vff1v6COlavyvCCcZtdIGX+NhEUCMPKwTsCAeRu3GeYUcjeZOlA4TY3PGz7zRmzXnvni1Scbzc04HQfLnBn1fibVjKBPrJ+sPxV2whbIzTEOvjW3229A/YirlrkECE69jF60T0z+lOdwcZIjm4inVnCqy+jMR5o0O3Sv2/zYs4iwCWvQa4ZboBZaWlIfH4tX4r6/6Rqgvb4uQAayMXu7tuap+oLRYslfo1TMOBcX9n4j6g7miZlqPIlxtHXK7aJwINBGBVgBd5Jhmp/UPImd+sLX1iGNpQuvFd1FhEP+e5ocWMFQbdElldT0u/I0MVCmKH9+VsSnMy7GPAkJ0aa/tBMIORYGh8O4WU5g+Bn+QdIaajWD/AEn06dORpQGUsaVgRwzFaN3vPrY7xfPX9bNOMgkp5GUlZQvMrI0lOtruWUjpEBvbwteQAdhdXt4RRPzCIcQQpT+gtxrWMOYZmjFAr1J5tvaY4HFmH7xGGt4CfYku6ONNhWy22oYb6VW9nWgZLLFo0vD8Ni4mgEBe4s/ANbFGdnGbunR08eTeTOZ4FcMvByX+x1Y6CPebSYkpcoINE3eX/zbKgx+aUwNsNABFUrkcyrS2iU6/tay4zqH6KDWxoPmxC+zFIBH5c9ckhdieBcuknoj01uMhFWNdTyf4tpSVYSYwKU6vMhxuYbICop18uuGLuhIKW7I6Mi3Y2SVKlXPu5fZ4pAGXCIMDoUD/hSBauyo4I/bVwbHTEsERocV7Ux6TquLMHOZj3osKwxsgvxph7jyZBw+Pp6WytchMe1vm9Beh6vKa h0cRdrk/ eJrucguYW65K5TTOc8WVT9lWYVeEzJldcs3RtdXY2b86Lc5gnKpfOQKTsx8Xd3ODTeS628Ij/YSs/yjO7f8lV79Ylu4sQC1cSJRBHt/iuQAx2vcAfrFOxpOBBH5K/T2jLNKvdj8iTctFephnCzzr+AVgOj1ehnMzo7mwhwGLEflYxDIVCEYK98lsxmqDyCTQp5wBnoQEVP2pdyVIbQBaiNswFUh+SmQeJe41wiq8ux+l4mPWLQ3kYP2MdD5pOq9KyABEODXedbe4iV1WoOlYa1JJckg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
pkeys kselftests improvements
|
expand
|
diff --git a/tools/testing/selftests/mm/pkey-helpers.h b/tools/testing/selftests/mm/pkey-helpers.h index 472febd992eb..84376ab09545 100644 --- a/tools/testing/selftests/mm/pkey-helpers.h +++ b/tools/testing/selftests/mm/pkey-helpers.h @@ -13,13 +13,15 @@ #include <ucontext.h> #include <sys/mman.h> +#include <linux/types.h> + #include "../kselftest.h" /* Define some kernel-like types */ -#define u8 __u8 -#define u16 __u16 -#define u32 __u32 -#define u64 __u64 +typedef __u8 u8; +typedef __u16 u16; +typedef __u32 u32; +typedef __u64 u64; #define PTR_ERR_ENOTSUP ((void *)-ENOTSUP)
Using #define to define types should be avoided. Use typedef instead. Also ensure that __u* types are actually defined by including <linux/types.h>. Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com> --- tools/testing/selftests/mm/pkey-helpers.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)