Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1251634imw; Tue, 5 Jul 2022 06:27:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1slJz6sLUccwh0+ZkVLvJiDKKfFBe/jBTNuIv/58B7yje1zifA6kDZWTiiWk5OKPcZurRyB X-Received: by 2002:a17:906:7309:b0:722:f9e9:3904 with SMTP id di9-20020a170906730900b00722f9e93904mr33896083ejc.198.1657027648709; Tue, 05 Jul 2022 06:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027648; cv=none; d=google.com; s=arc-20160816; b=GioBCOllZo0jCpaH0Z7umbVPi2AujMbU56YdO0vG748i7nQ79opWhhSoXJLN2kaIxA dLDBzWOKh1/XLzMnC9TXEsocbFk9YdUTiZEolrf2FbWrAvyBPR/j9jZeEttJVWC/bdRn YIcMZBho2Y3tDUEVK3Bvri9jryd5bX7nudFOyxBAYDb0pdJw7A88tsoXD/T1lLlbIAZ1 CtskgS7Y4y7OHmqlVbKZzLlHdUz02q1NXSiiE61t1wfX0TwISKIcWX1LpCBQaSMTpMTy Khsz+vBrJALseuFCmJapvhx+S/WNwHNa3YfCBACQweGOgBLcWYAW/usHUpRG/bW3J/ia O+WA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tHqrCyxIv/L/1ZXUBQab4Rh37UZ9wc6uluz1o0Ra7HQ=; b=uUmlEOY/q7g97VU9/0rRH5YRu1KlR+5JiCPzW75DXeYmhPOyTU+N1zgSH9xDgjRU+F OLUXyDxzfGsbiPljoRQdYbclDIuZUTWrnlvwkJU03S3IQGNfDNehjZh7cuVC84OPNNz7 G2D54qzLWFs7iDFnnd0ArgguegA5MJx3tMN1RT+dg96LUKz8IzyOA7K4CG+Tntc1ukC6 2/Nk5UCzbBPzTV4o9P7VfhjVLhgazdfIfgziNyPeXgs6dAmzOjm5XNqJVBI7m4CjD8ZP aR4CwCOYK5GdSEx1iME4DXPoHo1CXwik6oKeCUcJMmcjNdGnsrDRHtRliM1Lc0oRUf0I BEmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="p0f/biOl"; 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 i5-20020a170906a28500b0070ed13d358fsi39094038ejz.194.2022.07.05.06.27.03; Tue, 05 Jul 2022 06:27:28 -0700 (PDT) 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=korg header.b="p0f/biOl"; 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 S236856AbiGEMZ1 (ORCPT + 99 others); Tue, 5 Jul 2022 08:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236580AbiGEMRz (ORCPT ); Tue, 5 Jul 2022 08:17:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2804F193C6; Tue, 5 Jul 2022 05:12:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B8412619A6; Tue, 5 Jul 2022 12:12:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF1D5C341C7; Tue, 5 Jul 2022 12:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657023178; bh=V878LdBN19s8tRJg3JLUYQbVPB/+HWJ83r+Ig4+/bzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p0f/biOl4Rk6z+blnDfh6EL8rl9JlRxSpqn14hP/OOnbOH5JWuAA/Z8dMJafhGpmU TYZGy4VGycuzF/Ip2ZbO8lXDmOJXQ9IGrqO2gXbEePobLRFUCONXnjGVwjV3go+QBx s5RYUjdJFpWI4dIrWidt9BwWRAj1cOriOqKcSJzU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathieu Desnoyers , "Peter Zijlstra (Intel)" Subject: [PATCH 5.15 64/98] selftests/rseq: Remove useless assignment to cpu variable Date: Tue, 5 Jul 2022 13:58:22 +0200 Message-Id: <20220705115619.397003598@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115617.568350164@linuxfoundation.org> References: <20220705115617.568350164@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Mathieu Desnoyers commit 930378d056eac2c96407b02aafe4938d0ac9cc37 upstream. Signed-off-by: Mathieu Desnoyers Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20220124171253.22072-4-mathieu.desnoyers@efficios.com Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/rseq/param_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -368,9 +368,7 @@ void *test_percpu_spinlock_thread(void * abort(); reps = thread_data->reps; for (i = 0; i < reps; i++) { - int cpu = rseq_cpu_start(); - - cpu = rseq_this_cpu_lock(&data->lock); + int cpu = rseq_this_cpu_lock(&data->lock); data->c[cpu].count++; rseq_percpu_unlock(&data->lock, cpu); #ifndef BENCHMARK