From nobody Fri May 8 03:49:53 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 B0C6CC433EF for ; Wed, 11 May 2022 19:47:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347140AbiEKTrE (ORCPT ); Wed, 11 May 2022 15:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347116AbiEKTrB (ORCPT ); Wed, 11 May 2022 15:47:01 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671273702A; Wed, 11 May 2022 12:46:59 -0700 (PDT) Date: Wed, 11 May 2022 19:46:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652298417; 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=dOcs69Yu66kDZ9np1SfaNPgGsXdX4UAOF8Ra4sV6eLQ=; b=iEXsQCTVevmDQph7qA2eOjHDP3MXmRyxdi92noB+JgjX8tnJpuA5bqqVDkHv/Dq6V7W7n8 kOgC6fMGWQrIiy9zRDInaR/OaRRLUbpYpKfZlTQy6q7SU9ujK5UAyxmmtOlB+sNzZqS+Hn p1diYabL+131+uQdrPE1LX8fyXs9DhNI/hxDk5LpuHNkB5EUvFqKrucqZJaAGnhXzjW9Uk 4CycP/Y6BLVb61NiEOtgLcPNASqgxEzRKiZ/X+2hzLGMOl8yZWUfhmDl8r9R6u4y9GK12K GyqgHSncJYMwE612PEdKTNyG9CRLnj+z49gixH03i23rWZkX2994S0jNmtEZSA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652298417; 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=dOcs69Yu66kDZ9np1SfaNPgGsXdX4UAOF8Ra4sV6eLQ=; b=E2QyIC7n6lgGO8cxt1dNZqXBbUy/eO8JQMhG0xZ8WBxHMyqD5TcGhF3XdGZSE9KHdfmXeo bTXrwsqrPgvdhBDA== From: "tip-bot2 for Zucheng Zheng" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/amd: Remove unused variable 'hwc' Cc: "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220421111031.174698-1-zhengzucheng@huawei.com> References: <20220421111031.174698-1-zhengzucheng@huawei.com> MIME-Version: 1.0 Message-ID: <165229841634.4207.1052240336880939148.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: 2cc6edea3673e38fa96df5cf8a62ddc8b27c7217 Gitweb: https://git.kernel.org/tip/2cc6edea3673e38fa96df5cf8a62ddc8b= 27c7217 Author: Zucheng Zheng AuthorDate: Thu, 21 Apr 2022 19:10:31 +08:00 Committer: Peter Zijlstra CommitterDate: Wed, 11 May 2022 16:27:11 +02:00 perf/x86/amd: Remove unused variable 'hwc' 'hwc' is never used in amd_pmu_enable_all(), so remove it. Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20220421111031.174698-1-zhengzucheng@huawei= .com --- arch/x86/events/amd/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c index 262e39a..d81eac2 100644 --- a/arch/x86/events/amd/core.c +++ b/arch/x86/events/amd/core.c @@ -771,14 +771,11 @@ static void amd_pmu_enable_event(struct perf_event *e= vent) static void amd_pmu_enable_all(int added) { struct cpu_hw_events *cpuc =3D this_cpu_ptr(&cpu_hw_events); - struct hw_perf_event *hwc; int idx; =20 amd_brs_enable_all(); =20 for (idx =3D 0; idx < x86_pmu.num_counters; idx++) { - hwc =3D &cpuc->events[idx]->hw; - /* only activate events which are marked as active */ if (!test_bit(idx, cpuc->active_mask)) continue;