From patchwork Mon Feb 6 14:57:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 53334 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2280479wrn; Mon, 6 Feb 2023 07:00:49 -0800 (PST) X-Google-Smtp-Source: AK7set/yQA2HdNOQy9klx1Qj+BnAraxoSyq3ypv7f2qCQPYlV4z03srpSvWy8N2iBRQI/d6X/G3+ X-Received: by 2002:a17:90a:1d1:b0:22b:e2ef:6845 with SMTP id 17-20020a17090a01d100b0022be2ef6845mr21648575pjd.41.1675695649240; Mon, 06 Feb 2023 07:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675695649; cv=none; d=google.com; s=arc-20160816; b=epTOizCNMlNn6dJ/AcX5xMLHU6eI+3GTIJ9Tzx4Ed5pAWlmHij4PD2kk8uMzrU+h6s MbrYT8m/h07P5pVOxh3fq4yXoO7kdBQ/mS/NyZOv+JnDfUQi8vSahFTdQffHwMk/JngM ND0ixRvdstbR4c8BWb9NUlYqDqTJ+Itsu1yMR5J4xqIQDkecabH5RTZsO+Q+/lH+zUsR w8nyqFkDYCeLlNSQCV87mxMsNZmdRMqAW3IR/n3ZHpxtfBwIfAKWrurUSEJwd13Aci// lpvDat15dMzPCxg/38XuJZfhPeF8eKgfolyhnXsI/T4uItR1gFCVsrecBGawuWtFIHgv Jjbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=yluV3lLkO9smXnLsr2KsLUa9LqscUFrEopzcZx76aEQ=; b=BBusOr5hC1dpB5+Sp43G+Et5NLniKjQ4f3x1w7hqGWkoD1kbfAfOeC1CIzB8ACoUHK 9u+MWyQGfrPEMvoaZMnF4RIOzXS/48bpiVlBh53cbt2e58TE41uXBBoIcdGusWocCNyA Bi8ASamyN95ksrrtdeW6pDF1MTnWKIb3iVE/3tHUAsEnVkgFr414aVapTb+4XqPP8ifE ztHpvP5NPg4RvwYGnN54K3PeyDRkCvFz7dbSzJqJI8a4lK/Xn0BGeNumrNiQ7N5SZ9c6 oH8rnJUtIBL3y3pJM8T9nNEx/f9knPGzbZvIm+v66+3wYzZd3vHOVGeIsce0pIvnBUs+ rxjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IWSzC1hV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a63a30a000000b004df463e1cc2si12705725pge.793.2023.02.06.07.00.36; Mon, 06 Feb 2023 07:00:49 -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=IWSzC1hV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S230504AbjBFO5v (ORCPT + 99 others); Mon, 6 Feb 2023 09:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbjBFO5t (ORCPT ); Mon, 6 Feb 2023 09:57:49 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009F21AE; Mon, 6 Feb 2023 06:57:46 -0800 (PST) Date: Mon, 06 Feb 2023 14:57:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1675695465; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yluV3lLkO9smXnLsr2KsLUa9LqscUFrEopzcZx76aEQ=; b=IWSzC1hVO/xB7xMg9+i/SY/BAx3Y3agOE2b6BlKi0wy81GSlyq4ICwcleOaXiWadkuFQ+O 7cpxf1vzT5n/L30qk0rCh+9Qhqju9Wnxl3bf6LynKeFS2s/H6AnR8o6EDBo7E3p1MC9l29 Dml31ZKic/kRRKQQYWKFvQkALfUwEwGPAzVD9OuqI95oiadeMWZbPPqlQTcdGMZYONyFS3 ZvD26xG5g2VfEQG1oWIDcmL8IEY5YvqCljGJxigT0VGiG1FN7ejJDa3R+DvjS2o8zA1GRZ KdWAaiawwwqUsGW6+Vrtq3bJSp8wvExMMK0J5xzqvSXuk8EUyOfZ0hq4C2INIw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1675695465; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yluV3lLkO9smXnLsr2KsLUa9LqscUFrEopzcZx76aEQ=; b=qSp0js0UZQXCawCJwINFd5+Ok9jBlh6xYnLO/uXiDWH9e/2DGCXesn7Yebgnk3jNMD8sTE +bizSMexRp2vbLBw== From: "tip-bot2 for Sebastian Andrzej Siewior" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/vdso] selftests: Emit a warning if getcpu() is missing on 32bit Cc: Sebastian Andrzej Siewior , Thomas Gleixner , Shuah Khan , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221125094216.3663444-4-bigeasy@linutronix.de> References: <20221125094216.3663444-4-bigeasy@linutronix.de> MIME-Version: 1.0 Message-ID: <167569546513.4906.15099899150796556318.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757094240604711304?= X-GMAIL-MSGID: =?utf-8?q?1757094240604711304?= The following commit has been merged into the x86/vdso branch of tip: Commit-ID: 5646bbd6684acf5c9b9dedb863b7d2f6f5a330fb Gitweb: https://git.kernel.org/tip/5646bbd6684acf5c9b9dedb863b7d2f6f5a330fb Author: Sebastian Andrzej Siewior AuthorDate: Fri, 25 Nov 2022 10:42:16 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 06 Feb 2023 15:48:54 +01:00 selftests: Emit a warning if getcpu() is missing on 32bit The VDSO implementation for getcpu() has been wired up on 32bit so warn if missing. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Acked-by: Shuah Khan Link: https://lore.kernel.org/r/20221125094216.3663444-4-bigeasy@linutronix.de --- 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/selftests/x86/test_vsyscall.c index 5b45e69..47cab97 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"); vdso_getcpu = (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) == 8 ? "WARN" : "NOTE"); - } + if (!vdso_getcpu) + printf("[WARN]\tfailed to find getcpu in vDSO\n"); } static int init_vsys(void)