From patchwork Wed Nov 16 09:14:28 2022 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: 20828 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp43260wru; Wed, 16 Nov 2022 01:26:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+d8QPLIOqd/IwYBwGDQd22cXVgPR2lU4LozVNjvJrMJFpeR1BgUKMuTqFId467kRonL4g X-Received: by 2002:a17:906:a044:b0:7a5:a671:8236 with SMTP id bg4-20020a170906a04400b007a5a6718236mr17509699ejb.187.1668590819704; Wed, 16 Nov 2022 01:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668590819; cv=none; d=google.com; s=arc-20160816; b=mpsPlJCVp+p050vIkHAxQ1ecc2hj/UYYnJF+gAV7m7RJo1YL8uWNBbTqSpR448KLh9 isiqLMKj8C78JPTa1E8OIZmPSEmplVu4DNSpGmg5vPQ4YZG3XK7NwzJcbN4gwfn/BLhy vxku/r4VelmPshZ5Fqi6Gy/OTKG70UIo1Ifsm+LeFJKUmFCGjk7OMdYFM9BoegRVWvvc jvIL3YKLTMqm9awdFkAD57GVeTgVenGNPPsCPSMbCaFOGqbEeEzA2/sTwkBWEg3RYx16 esla5KCCHYneXwsSuurmHrdHxkNhdfyclptM3MrtYEXk4cbdutLo6LKdEl90nCm/YDLQ K/rA== 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=J12AjfEBxw2JDdQGKt0HHv0EWetLXI3s7cHu6+Akp4Q=; b=S+IrxuRm6+j/EOw9Ra2S0S5Ca98cRLmVYKBoYNyCD1egGesB+wLV449qmnadna8ad7 It4RqfvSN/KHTa6ZZ9KMgGjL+UBkH7DRD+hUbU7u0MXrd9tK4tRZ94biBgEZu5ChwPYI do3g2eRpqyN6o2W1hSwlT9xD8g74mvVmZF5IfCsTPsSWvrIA+rEYBdAhQCN3l1+ROg2h aEaiABO3gpHa3AYfG3VLEA6KA/1yzydunc4fMtn4QCeb31l2rb8fLD4BVDwkFAEaF7tn Qn3n4cJY9dtPWUiyNfYYhUXIq21O6vt3zy2jf3WkFpWoluvqCPkgnU106yMrDpkVjh/S talw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ghmcLyDP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=K5NnJKtJ; 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 k19-20020a508ad3000000b00461cb25bdefsi13457065edk.254.2022.11.16.01.26.36; Wed, 16 Nov 2022 01:26:59 -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=ghmcLyDP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=K5NnJKtJ; 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 S233169AbiKPJOj (ORCPT + 99 others); Wed, 16 Nov 2022 04:14:39 -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 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?1749644287331442843?= X-GMAIL-MSGID: =?utf-8?q?1749644287331442843?= The following commit has been merged into the perf/core branch of tip: Commit-ID: 3ce1cb7eee70335b6d4f50fadec264473e9566c3 Gitweb: https://git.kernel.org/tip/3ce1cb7eee70335b6d4f50fadec264473e9566c3 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_context *cpc) struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); struct perf_event_pmu_context *cpu_epc, *task_epc = NULL; struct perf_event *cpu_event = NULL, *task_event = NULL; - struct perf_event_context *task_ctx = NULL; int cpu_rotate, task_rotate; struct pmu *pmu; @@ -4229,7 +4228,6 @@ static bool perf_rotate_context(struct perf_cpu_pmu_context *cpc) task_epc = cpc->task_epc; cpu_rotate = cpu_epc->rotate_necessary; - task_ctx = cpuctx->task_ctx; task_rotate = task_epc ? task_epc->rotate_necessary : 0; if (!(cpu_rotate || task_rotate))