Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10244350rwb; Fri, 25 Nov 2022 02:43:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5114HWVcE5Qy1B8Ra76CWtwdwP6ipfjuUdddOTgUCEB55O9Za6oQAZ5wnKMVh0An//MXJD X-Received: by 2002:aa7:8d5a:0:b0:560:eec2:d0ab with SMTP id s26-20020aa78d5a000000b00560eec2d0abmr39303055pfe.43.1669373011114; Fri, 25 Nov 2022 02:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669373011; cv=none; d=google.com; s=arc-20160816; b=tjJ01U6b6nJqwkaAbj4iTqjS4EhiGUxR56p/l61Ybr+7A/LJ5WwlnlV6JiqVoKZR3E nqrzPAaN4MgKtPYqM78f8SpPzpURptioo/cO7GvvgwjiFcekckvzN7Wmifih1RlFOmWv 81G2IjkdqIgQZT4E0dzo2NWjDozB9h1rRSK++eBYz246oOF2lcdaXsQenpwMNELWuuS7 sRkz5+0Z3ypIm3zRcVUTEjLyrvm9fEBBdqiXcly9FOAlSRuJ+dN6+mTdCmKAd7emKlX8 y96gVveLOePsSnJ/6k4596cQ6JorFK7zW/BTM//WtEo9vyl386ClPXd/E0cP/kTrlHSI mZqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=tkHfIWZ+AXddA17Vln4Zv2kJvTG9y3spaF3cG2QDrJU=; b=SfXeWTPmuO76r/xVRSqZIB/X2HOxWB4xApEyijAu8MPCbteai2m/f4sfkHIKeSyENh scTjDu5yYbd2cxnhf+7j4/dYYjuyOMymrNq6lor+poymvXUvwpHuW9X46Gd1RrB5yn5C 4G7OZ2jlIAwAPyhb5a6MmxjzK+oB7AMApn+N18JK30C45TsDsJNs0xepnyigh1fQ53BO RVUrkT2iqRpU3qt3G80ss9E1tinaMjufi5zj8WTWlow1gikR5ll5btb3aZ2jTKLyx2Cm 4ba85De58nT8bttcxu5hXpYWrRC3vBR2Ju8rSPRN7b83OEKpj81Qn7XEJGi7nBm3Kbb2 GTHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U9GnlAVl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/nPSkX2u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g25-20020a632019000000b004772bd7e38esi3747460pgg.868.2022.11.25.02.43.19; Fri, 25 Nov 2022 02:43:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U9GnlAVl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/nPSkX2u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbiKYJnE (ORCPT + 86 others); Fri, 25 Nov 2022 04:43:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbiKYJmo (ORCPT ); Fri, 25 Nov 2022 04:42:44 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FE2E23BFE; Fri, 25 Nov 2022 01:42:39 -0800 (PST) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669369357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tkHfIWZ+AXddA17Vln4Zv2kJvTG9y3spaF3cG2QDrJU=; b=U9GnlAVlA00LESkky61O56pvX9stU5T9eAGYoI06mvV7ObkG7eQmZw6BDKMJpjzb2Kbcgk P1ikq9bsh06PjSX/DyKKNpGxfl2CQ8m/Mk+dh0w7bYfH/1x2spaJjayHM+MaDoca7aa9JI nIvyEv2d4dlgkxMZulNU0mjKoHHCbOEMizE2XD1EKKWQPPsJ8nIU14EdvsBJHugSEDslJL YlcepZNvqBFqYfWMdS5dzjpPFtSExSayFWDbMDYYKWPtVEnkjoiKfO6nVsg6Y9v93CtD/0 Jd2JSPaq08cS/ZivTWkdb6I18BxKL7z1HPbWK4ZtOVdoDrGqUDEqj9x4uh8tXA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669369357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tkHfIWZ+AXddA17Vln4Zv2kJvTG9y3spaF3cG2QDrJU=; b=/nPSkX2ux5m+/P5mpV/FRizufVbb7UsOHs/O4CpzXs35wg3eH1hgnEmBsJAVPHcsxjOrHX AxcsAWw9yHd7pzDg== To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Roland Mainz , "H. Peter Anvin" , Borislav Petkov , Dave Hansen , Ingo Molnar , Thomas Gleixner , Sebastian Andrzej Siewior , Shuah Khan , linux-kselftest@vger.kernel.org Subject: [PATCH 3/3] selftests: Make a warning if getcpu is missing on 32bit. Date: Fri, 25 Nov 2022 10:42:16 +0100 Message-Id: <20221125094216.3663444-4-bigeasy@linutronix.de> In-Reply-To: <20221125094216.3663444-1-bigeasy@linutronix.de> References: <20221125094216.3663444-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vsyscall for getcpu has been wired up on 32bit so it can be warned now if missing. Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- tools/testing/selftests/x86/test_vsyscall.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/x86/test_vsyscall.c b/tools/testing/se= lftests/x86/test_vsyscall.c index 5b45e6986aeab..47cab972807c4 100644 --- a/tools/testing/selftests/x86/test_vsyscall.c +++ b/tools/testing/selftests/x86/test_vsyscall.c @@ -92,11 +92,8 @@ static void init_vdso(void) printf("[WARN]\tfailed to find time in vDSO\n"); =20 vdso_getcpu =3D (getcpu_t)dlsym(vdso, "__vdso_getcpu"); - if (!vdso_getcpu) { - /* getcpu() was never wired up in the 32-bit vDSO. */ - printf("[%s]\tfailed to find getcpu in vDSO\n", - sizeof(long) =3D=3D 8 ? "WARN" : "NOTE"); - } + if (!vdso_getcpu) + printf("[WARN]\tfailed to find getcpu in vDSO\n"); } =20 static int init_vsys(void) --=20 2.38.1