From nobody Mon Apr 13 18:46:01 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42C60C4332F for ; Wed, 16 Nov 2022 09:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233301AbiKPJOk (ORCPT ); Wed, 16 Nov 2022 04:14:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232745AbiKPJOd (ORCPT ); Wed, 16 Nov 2022 04:14:33 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF7275F53; Wed, 16 Nov 2022 01:14:30 -0800 (PST) Date: Wed, 16 Nov 2022 09:14:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668590069; 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=J12AjfEBxw2JDdQGKt0HHv0EWetLXI3s7cHu6+Akp4Q=; b=ghmcLyDP+ZZU6BBDzV00+CF1UCkm8+ZNXXExorCB3i7MjdtCCVcruxKMLZxXlEKW1xFPFo ZO/46eTVig8qgiCRxaLfFgb7uP7T39OkAmXEo/C5Bnju0bOJdDF/yWq1kz3nt4nVVPobNG QsrbgeeXcritYzR/M3cZEVm9yop/Ts89MaY9gAglBfy7aqiDRthPWwXy99jPQ2MnU6xtYO wQwd8ZE2LhqmV9yikZp34aYp81HzcYO1+6XG52Di3xPFKdrFYzRG8SNH2xW++uaz0en8/2 /wXvq78Iw/mvae2guCkgGfCRkiztRO34Rc4/I07qJaLcane4519Bh62dMSdppA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668590069; 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=J12AjfEBxw2JDdQGKt0HHv0EWetLXI3s7cHu6+Akp4Q=; b=K5NnJKtJXNp5OHP9VhXrsBuI5h0AR2ADGAOeR8PJ+bfAmXTUx3otKyNrgDtQIG+k2hRpvp XexyCvD/1LgvGcAA== From: "tip-bot2 for Colin Ian King" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf: Remove unused pointer task_ctx Cc: Colin Ian King , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221028122545.528999-1-colin.i.king@gmail.com> References: <20221028122545.528999-1-colin.i.king@gmail.com> MIME-Version: 1.0 Message-ID: <166859006830.4906.14078018053226238074.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 3ce1cb7eee70335b6d4f50fadec264473e9566c3 Gitweb: https://git.kernel.org/tip/3ce1cb7eee70335b6d4f50fadec264473= e9566c3 Author: Colin Ian King AuthorDate: Fri, 28 Oct 2022 13:25:45 +01:00 Committer: Peter Zijlstra CommitterDate: Tue, 15 Nov 2022 22:30:11 +01:00 perf: Remove unused pointer task_ctx The pointer task_ctx is being assigned a value that is not read, the assignment is redundant and so is the pointer. Remove it Signed-off-by: Colin Ian King Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20221028122545.528999-1-colin.i.king@gmail.= com --- kernel/events/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index ec2abc5..baa2997 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -4215,7 +4215,6 @@ static bool perf_rotate_context(struct perf_cpu_pmu_c= ontext *cpc) struct perf_cpu_context *cpuctx =3D this_cpu_ptr(&perf_cpu_context); struct perf_event_pmu_context *cpu_epc, *task_epc =3D NULL; struct perf_event *cpu_event =3D NULL, *task_event =3D NULL; - struct perf_event_context *task_ctx =3D NULL; int cpu_rotate, task_rotate; struct pmu *pmu; =20 @@ -4229,7 +4228,6 @@ static bool perf_rotate_context(struct perf_cpu_pmu_c= ontext *cpc) task_epc =3D cpc->task_epc; =20 cpu_rotate =3D cpu_epc->rotate_necessary; - task_ctx =3D cpuctx->task_ctx; task_rotate =3D task_epc ? task_epc->rotate_necessary : 0; =20 if (!(cpu_rotate || task_rotate))