Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1491226rwb; Tue, 29 Nov 2022 14:29:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pxTXU8UBvi7VRGuA3CVSpCeIpTwULkJHU7OQ/OWbL6rzv3snXsswWC62U97TElSVIlW8C X-Received: by 2002:aa7:dc0c:0:b0:461:6f87:20bb with SMTP id b12-20020aa7dc0c000000b004616f8720bbmr53558545edu.300.1669760963729; Tue, 29 Nov 2022 14:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669760963; cv=none; d=google.com; s=arc-20160816; b=xROnUIA/sGWzh4Wwlshak3TCnqqkjEQz6KVS1Q5c8XgGI2JHPyaUuPPojR+1zDvBYN aaccbWgRmdYtzmB2TLoiOITFJLxTbU8GPo6XQsERY1H+NRaURjrcl5+mOUYoc1iEIwHx JrHlLup66n5O+FpFhjKG+nekFW1qvJ5IED3ig0gUceS5adkQxDoNFuvvuGfhSf0FM3Wv 0jm8rdMUGhNhaEX+/hDnhUNPGz4fR3UjvbjzH3FgvoUZhCHBYHx3Zx1QBcYu2/SW6b7U IvK04gwqESGTWPoaKFRjPft+ObJ3nsINiSziiQ96hzek+bSTz0Nn7JKgw+94YzLmUX0Q a0DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ur6a/CzXJIypB8RYZUhojWApn7N1bPxeoQ/GZe4dipA=; b=kfvP5ifLUBigjyh1gIj2T3fBtaYOuKRsPqD3ilpcs4ECQDJpaMBRirEpbeok0yaJwi pcA3C+Nk8yvuw4XKrPd6Xubu6FkYOi1p8TDUDliuNE91ei4/2dgPCYm6pXJAltdrp8SU 5iGU5pB4DMrr0hQIVxintxoxPXednqRncSnZJu0K/4HCudmLSPdMHiyuWvkMbf9qLuIz tB7fvuNbCbeuPhCJgH7HQh33Ur1ExfmS13kaCD6mSB+e35IsJzRTgFNUZp/kPJEQiCHt uyGm+mS/q/V0Quz2xWD8HUZ+QTBYgUrmwVvtclpYzgPdWffz9iWpNNtHfvgi4y5xKJG9 GIwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=gzcqXxjv; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay10-20020a056402202a00b0046a6960c990si12068862edb.431.2022.11.29.14.29.03; Tue, 29 Nov 2022 14:29:23 -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=@linuxfoundation.org header.s=google header.b=gzcqXxjv; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236891AbiK2Vyw (ORCPT + 85 others); Tue, 29 Nov 2022 16:54:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237061AbiK2Vyt (ORCPT ); Tue, 29 Nov 2022 16:54:49 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697E06C72A for ; Tue, 29 Nov 2022 13:54:48 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id r81so11119058iod.2 for ; Tue, 29 Nov 2022 13:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ur6a/CzXJIypB8RYZUhojWApn7N1bPxeoQ/GZe4dipA=; b=gzcqXxjvNW6BZ3wOYM5yYHr3eUcD+l8Qw/s4DjB26DCMtvo7UxZ7DmoJwVC5fA0lGp HVtjdK7eTE11no/FnqNrxB4rOX88+GRSvf4RfZjf9a5mqSvRxhikadM6e7jIwlpDLQC+ iZFYPlxx3eAI8oNhhgr7OuWohSNVbuIq5JL8c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ur6a/CzXJIypB8RYZUhojWApn7N1bPxeoQ/GZe4dipA=; b=L5sGkW4w79OqufCu7oZ0udYNIwTewWtuseTWDYDvopcGrmfgv+qirNv1xWtBCrOuad VXApr/HhKslx5w1FosKN0spDdQ6ccRgQwgszf3M7179SxBkm2yiISEjIO/pIKZHTzK0z BigMhUqYcod8xrdu985L/4KMpWYh4YJpKdnqBRTgDYjXRjBbjUXP/SwHatAqKdfiXBpU 7LxaFvs9Y2f78GukrezP9UKuV53f8MNGR73gdlXJ1V9lQX0MZFNwWl9/MiDmavYTeqzQ VhfSgHGXIf7TaGgsvsNqCcepU9qH7BFmt+wpAH/PngFW2cgc+zpGaJVddC6k+WnCZIhI LD8Q== X-Gm-Message-State: ANoB5pnhjm7x+v/sL9zRODUXYprpwx3/ha2ahtcq3QPQIqhk56dTLs9m EHk8XEwQ/QB4zjYEI6MEAulzKQ== X-Received: by 2002:a05:6638:1a98:b0:375:61b2:825a with SMTP id ce24-20020a0566381a9800b0037561b2825amr28405190jab.147.1669758887713; Tue, 29 Nov 2022 13:54:47 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id b36-20020a0295a7000000b0037612be6830sm5491192jai.140.2022.11.29.13.54.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 13:54:46 -0800 (PST) Message-ID: <45793334-f890-d0e6-dd3a-6335ed0628f8@linuxfoundation.org> Date: Tue, 29 Nov 2022 14:54:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 3/3] selftests: Make a warning if getcpu is missing on 32bit. Content-Language: en-US To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, x86@kernel.org Cc: Roland Mainz , "H. Peter Anvin" , Borislav Petkov , Dave Hansen , Ingo Molnar , Thomas Gleixner , Shuah Khan , linux-kselftest@vger.kernel.org, Shuah Khan References: <20221125094216.3663444-1-bigeasy@linutronix.de> <20221125094216.3663444-4-bigeasy@linutronix.de> From: Shuah Khan In-Reply-To: <20221125094216.3663444-4-bigeasy@linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 On 11/25/22 02:42, Sebastian Andrzej Siewior wrote: > 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/selftests/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"); > > 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) Assuming this is going through x86 tree due to dependencies, here is my ack Acked-by: Shuah Khan Let me know if you would like to me pick this up. thanks, -- Shuah