From patchwork Fri Nov 24 16:35:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13467938 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 E2BA6C636BD for ; Fri, 24 Nov 2023 16:36:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A0B1A6B03E6; Fri, 24 Nov 2023 11:36:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 944B36B03F0; Fri, 24 Nov 2023 11:36:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7E7F76B03F2; Fri, 24 Nov 2023 11:36:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 6B51C6B03E6 for ; Fri, 24 Nov 2023 11:36:21 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4206D160D2E for ; Fri, 24 Nov 2023 16:36:21 +0000 (UTC) X-FDA: 81493400562.26.63E2C9C Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf27.hostedemail.com (Postfix) with ESMTP id 8E1344001C for ; Fri, 24 Nov 2023 16:36:19 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf27.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1700843779; 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=mi3iRzXSuaS22skYgxrmq+wQVwac6Qocw9MkMiJlnLU=; b=lIdEsdw6tf61Q3EQxsOMGHvfKJqCPM9oFP4o2zS+9klnvxUMYPfgwMhzVIdFzwyqy7Za1C BvS4sa4xFPyj5cCr0bSygmZmVv5H9bg3i7RwuYGSdjMo7/juYN5+082c3pUtTodxziznZE gayYvDw/7bvT3PthaC7RMrxAmKpkDok= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf27.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700843779; a=rsa-sha256; cv=none; b=Ze4lUrbfEJJ+bkUirAXcYSMlPnLtVXVpJ+hxJXq/yI5comUxg0k9LKUM24babwAPA77Ht6 BqINGuMeCLEgxPpKQzde6CAL57Sbiab0EQd3wMgyzNVwmfWLxSWLOngfZj9BjOqe36L1YK eNm3oFoCugQVaNKHZg7eTVi8vcFUHDs= 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 6C1041063; Fri, 24 Nov 2023 08:37:05 -0800 (PST) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC8493F73F; Fri, 24 Nov 2023 08:36:16 -0800 (PST) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, broonie@kernel.org, catalin.marinas@arm.com, dave.hansen@linux.intel.com, joey.gouly@arm.com, maz@kernel.org, oliver.upton@linux.dev, shuah@kernel.org, will@kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, James Morse , Suzuki K Poulose , Zenghui Yu Subject: [PATCH v3 23/25] kselftest/arm64: parse POE_MAGIC in a signal frame Date: Fri, 24 Nov 2023 16:35:08 +0000 Message-Id: <20231124163510.1835740-24-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231124163510.1835740-1-joey.gouly@arm.com> References: <20231124163510.1835740-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8E1344001C X-Stat-Signature: dqku7g1dq3n7w1z4jos93ahtp1yrd83g X-HE-Tag: 1700843779-660018 X-HE-Meta: U2FsdGVkX1+at50NYq420mAnnZUs6tSJg9+4YVJ7mfm46NzT5hHBftFU9sHbtGxsYCXMB6Lfy4NH1KKQI7tLIQPwBbKfQwVH/Ap0dJmmiHe6q2Ef/bqG8nsNcbkWg4EEzo/wgFt0feC6gmnBH1wAc38C8Bj51HqkPnJtKZA5vV9dy/rLS0gzerEBbm59JjpcQtU/a9AcPWqL7T/dXy0w1LfFI5N4ms5XYPyuaeOdaAr9wRqjktgMzHMYWED811b17TAkOmCV5KYJlOHKMnAxU9tcwD1DEz2mhfrJPV8WLx44qW0JNonGOvc8RXSyjCoV7YXCmIyRJ3cQZvDST4eW4WK6H4AS7L5dz6OHahGGoEN6/CA4yKmzcAzmauQ3Q9eG9c+qFDvnOGRicjZkgR3QQHOecriaR1Cujg8Ld9sVAzxVENyIqjkNETqL5WN/MAfCC2CSjMWbMOhqQy9i4sJZ3SRZTJRVLuEXsERHt6AU1/kKNVq0ZlDUc68ZlWrmy0zKBQS9ayi6lvM9SlL1cKxU+LzEQX4OScEQNL+WVGQft+PBSTj+ewncWWS/imBJpTAojp4/jhozEEwvDEchTrbjLcCJCcM0zIfRwfTNvUMCr1Zh+yFW6UfbJ6cc9jPJx7S5IJl44Q2rnYT0QqtmrZF69B6ahBTdmxdy6SD1ndl4Juvl0HSLfAFKXyUEtTfYAFif0TFp4okN/Iqvl24Xp1V9+Dp1Euq7VKTC3TD6esiFJU6aNtLD+1izlBKhZvmUCmYUzFZSwmxU5LEFBjajFpjOAmzHyGVpNcqOAJpYW0j3Yrs1pQjkV3HtQJKV72V7SOG+EpupPI9+LfW6Qd6+PGzG6QXloyGi8WZVz2Kn67c77QA70tEzIiFgrft7GRVyMe5BCHXNsherVAmI2IsK77VSQQudhfJieYJN/i2o7wKXJlFlEdN88azTGn1cu2PDpNk7zyzs7/i/BRoqxIEOhxi q7khJjkY wEV01FZheMw0ch/lmV4lhloPLeG/6Fx/pfTMED8Qvpi0eUA7Ef/0VoUn3n4lZm8UhFkMQ5R1Jm3I3OG8LNeUzMEmw15rzsqTUcGzdLI3Y/QgQ4gnQWmIo5ief//pfwmB4zqz7aL+uLTEprRir9qGNlT7RGGNYrkkTJVPXiuWqd9xQ+cOVsn+H4n/7rTWYFyXXcl8UbLg7j491eVJH9E04cxZv7ZUeRVUQU0HowYteWqpvXXEd6V0Y2KzH1kuGtVTfQ9dO6wh34leaGeQ= 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: List-Subscribe: List-Unsubscribe: Teach the signal frame parsing about the new POE frame, avoids warning when it is generated. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/signal/testcases/testcases.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/arm64/signal/testcases/testcases.c b/tools/testing/selftests/arm64/signal/testcases/testcases.c index fe950b6bca6b..5dda753870aa 100644 --- a/tools/testing/selftests/arm64/signal/testcases/testcases.c +++ b/tools/testing/selftests/arm64/signal/testcases/testcases.c @@ -161,6 +161,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err) if (head->size != sizeof(struct esr_context)) *err = "Bad size for esr_context"; break; + case POE_MAGIC: + if (head->size != sizeof(struct poe_context)) + *err = "Bad size for poe_context"; + break; case TPIDR2_MAGIC: if (head->size != sizeof(struct tpidr2_context)) *err = "Bad size for tpidr2_context";