From patchwork Thu Aug 22 07:13:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 13772830 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 D4245C3DA4A for ; Thu, 22 Aug 2024 07:14:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DFFCD8000E; Thu, 22 Aug 2024 03:14:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D890380009; Thu, 22 Aug 2024 03:14:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BDAF98000E; Thu, 22 Aug 2024 03:14:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 98A0280009 for ; Thu, 22 Aug 2024 03:14:28 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5700FC130F for ; Thu, 22 Aug 2024 07:14:28 +0000 (UTC) X-FDA: 82479018216.25.33B1816 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by imf30.hostedemail.com (Postfix) with ESMTP id 4AE8080004 for ; Thu, 22 Aug 2024 07:14:26 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf30.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724310806; a=rsa-sha256; cv=none; b=ghHszY35U1zNUcUf8cFt7/FE9XWboD/4SAL/iMcSNdKkcIvqR+5NmYYSm7PkePkshmSO8I PVEuFBH9n590/TPsPLFVGPyrihPLKcsKFdbiq1dqEN1THFo42d0Y4JkG4IfNFgFoOqFhnS tFtjkCf7zsC1KrJTf4/7RTuAFO8tAA0= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf30.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724310806; 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=PrP1BjEZTK/Lz4R61qlKovMdIhf9B8wwWxW6ci28Ec8=; b=oFeVAUy/cfX5gjMOcDSH5FJ/q9hpn46qPodeYJkDN+aXr8aqpZzl8ZqEqhi+NDVZzz0Ipf KP9ASK+lyKPict5/Bk5Td+pD9/emFCAsgmwNnaeheVXhTZ9wYsmQRxYHSKdR51FnDE3KD3 jyuayvKQGYVM5BmEMid1MKr/eZDmwZw= Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4WqDvM3bmJz9sSf; Thu, 22 Aug 2024 09:13:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3zbc0PqHC6BM; Thu, 22 Aug 2024 09:13:35 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4WqDvM2pDGz9sSH; Thu, 22 Aug 2024 09:13:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4E20F8B763; Thu, 22 Aug 2024 09:13:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Bo4ZQu0kswTZ; Thu, 22 Aug 2024 09:13:35 +0200 (CEST) Received: from PO20335.idsi0.si.c-s.fr (PO16920.IDSI0.si.c-s.fr [192.168.232.181]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 414F98B77E; Thu, 22 Aug 2024 09:13:34 +0200 (CEST) From: Christophe Leroy To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Theodore Ts'o" , "Jason A. Donenfeld" , Arnd Bergmann , Andrew Morton , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Vincenzo Frascino , Shuah Khan Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 12/17] selftests: vdso: Fix powerpc64 vdso_config Date: Thu, 22 Aug 2024 09:13:20 +0200 Message-ID: <88431f094c8f24774a19edd345bd4dc0d8cd796a.1724309198.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724310794; l=1023; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=o2dSOswubvHE1lTeEuhUcTWvANfg8RAkUzFIjloHUmw=; b=wG3pcxgAF1nbLi883TF7wQztwOLE/+CaiSBYH0QtsYn5HKn8tYwGt+5GosKqV1s5WX1rcxSTR /yezMLtor2zCaWboyDvcqO9YS6XW1oWXuQjs1rrvQU5ZvPpo08igpT8 X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= X-Rspamd-Queue-Id: 4AE8080004 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: ho8qrbyr46ja38a3szp9y9biuefrd3eh X-HE-Tag: 1724310866-365509 X-HE-Meta: U2FsdGVkX19ofHSIo4VISEarr5dCgv1WWW1zQL3jkYrwpDlSRfMjcHu1X5s/H+L1EJKtjIqUx8TKOp7CD2mrpR7t/eO6HvW2zwyFqpfZoFMeuKHNFN7UP4lRDEXXPrRVbQzJ6ld4nVsGwmgxRCVIn2iHIR+7lA+jyk1sZPsYTE5eApww9qHa8EOLPlflSWzPZ4oq9bceaJrCWe5L1wpl3aDwpv1T6R8us/e9l3bYcmT1cv9eBaGTKpNLqFJaBQWoJTqEk8qCL7FE2hgW17reGXXF9nvjIZ0Ml62vmO9YZPhktsyk4e9jGfwF8zhuHQ9IXJ9lY7okilRmKrOZhcl98jw/UY/xovRop/rSCrpj+fgVgYz6Owj9jp26E3LCEQaxvskw1MSmb84hZXQZ2fD4J8MWE2U4GGt/UoHV+XwRQ5niU7d7yKyVn3wjSc6F8NVv3NAJ3qB2/3OgxPQmVLOy6TVg76luClFofLQEMFMRdpGY7tRb0iCEs2UforhW6nzPHmnSKWWWbdNuaTi4kjE2VzImUJzanuxZvgVHudSaoDYCjmAY9+eFmu66lEom2qA2rwnPy5u+ocRXbhQ7cSSdDnb5a3IEecUJO08rZzAXPuLMBRn7lpDlEDvoa4uvkmla5UzwkRFmnROK4ogTZXkG8dXgNSDqmgU0D845iJaYMPWKZ+SYab/OAzAF5fdwCT1CErnmmMT2fOt99JH76ClXom0i1ergoqG7zeuOXoqD1pk43ZlOjaLy6rRJRvbflTswU8z1aOwf89GIEC6ckQlFBcvWfQt/VDI8wd22IH9ytWYR2MzMXasnsLoJxNaZ+6jg39+wtJeYpnGZC+IFMZpBDoYhnAKAJOfYCpF7nzOxNrW5qwOtgEXXl2Wo1Spz+kTwimW78x7Qb22MaRU9wnX3DNZCaZeasEKfclVqwUZ2xRKiBQ2wiGa9Eup+C110TJBT+Rp3Dt2sc/IjAlz4baM HD6zzx9b ufM76qamIf8ONRXnP8y/u5nhaz9Zxr7XjpKvTfnPjS2QpfWbBHKIFep7ochvJX+DZ5m5MxardJ8EeGuYeJ0jc4Jltgu/qYXE2hTgHsHIxLiT417Z2zss4FXrFm/C8/1MpEybLNsy3th8WH5T4v9ZRV+dFHWYms8wzfFvqw134mRYj6w0= 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: __powerpc__ is also defined on powerpc64 so __powerpc64__ needs to be checked first. Fixes: 693f5ca08ca0 ("kselftest: Extend vDSO selftest") Signed-off-by: Christophe Leroy --- tools/testing/selftests/vDSO/vdso_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/vDSO/vdso_config.h b/tools/testing/selftests/vDSO/vdso_config.h index 7b543e7f04d7..00bfed6e4922 100644 --- a/tools/testing/selftests/vDSO/vdso_config.h +++ b/tools/testing/selftests/vDSO/vdso_config.h @@ -18,13 +18,13 @@ #elif defined(__aarch64__) #define VDSO_VERSION 3 #define VDSO_NAMES 0 -#elif defined(__powerpc__) +#elif defined(__powerpc64__) #define VDSO_VERSION 1 #define VDSO_NAMES 0 -#define VDSO_32BIT 1 -#elif defined(__powerpc64__) +#elif defined(__powerpc__) #define VDSO_VERSION 1 #define VDSO_NAMES 0 +#define VDSO_32BIT 1 #elif defined (__s390__) #define VDSO_VERSION 2 #define VDSO_NAMES 0