Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9635028pxu; Tue, 29 Dec 2020 00:20:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzkr+PCvq2i5l78w6s1s7x3XU0You88blMI3P0QvSVkngDGwvG+YW4he0b2H9G3nFXYW/K X-Received: by 2002:a05:6402:46:: with SMTP id f6mr45350230edu.163.1609230021921; Tue, 29 Dec 2020 00:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609230021; cv=none; d=google.com; s=arc-20160816; b=JCXi1/6JjfZE2sKUKDkcrBz0lmnxCuo+JepYiU8K8aK01N9nkFavJj7vbvn6Bc68y8 At6W5PK89rx7TnK7+WpGq6Ec7Kwos7uT5tSSEc+IBFiLUX2mK+nAlhGQj0dCb88fInca 1DN8m6SSxgIbSlEx5ZnaiM/wHu4wOwFA3ekHkN8lUE/Ax6l6dS8iJicA6Q8LBjKCupky qmCm3Wx4kGbmQxUO7YXw1XXmJrFnX5e//wzXtnqFzjLtdcBKYN8Jws7sPJbJ5wumFhfu 06KJ1UUWUqTSS7p0przQ7PIdUjeuuLzsIjZYtW1BIR7rvYWDPHCB6xbd1fv+qpxVSS/3 AutA== 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 :message-id:date:subject:cc:to:from; bh=FMebRJKvQ9IZ/Htiem+Uk8kMVB/jvkhqChBIAIUHDfI=; b=SBj3LspEx060qns5wdTwG0E29TfyJThgtNlqMNjSJVvEwwKsJIgAgp4wkUB0JI1xde +r7mwjT6X5k1n2bnmIhE0zpL7bvZvMVyd+19Ch+CM7I1Rkz9N7xnbVVFhOe7zri2Ntiv 8spydM/OUADjVMp0C92u98A8NME3YA6wn3XJnpgMVHsd3zg+WON14kV0zESf6vHxBS3e zWOwotJjR+kuptMul/xBEJVDkHKOBXmMGEFL2w9ayDTUs/lXg6Iwc5VbcGnbfB8pmDDm liNM5QynRFMG5xWlbJSad5fFeVMOxu3l5o+oX5KmCx6U8mMYu0USn3FakUrtwr7yztws ICHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si19772458ejn.207.2020.12.29.00.19.41; Tue, 29 Dec 2020 00:20:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726284AbgL2ISj (ORCPT + 99 others); Tue, 29 Dec 2020 03:18:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgL2ISi (ORCPT ); Tue, 29 Dec 2020 03:18:38 -0500 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A70A4C0613D6 for ; Tue, 29 Dec 2020 00:17:57 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by baptiste.telenet-ops.be with bizsmtp id A8Hr2400a4C55Sk018HrBb; Tue, 29 Dec 2020 09:17:55 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kuACV-000vOA-Bz; Tue, 29 Dec 2020 09:17:51 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1kuACU-006QD1-Te; Tue, 29 Dec 2020 09:17:50 +0100 From: Geert Uytterhoeven To: Catalin Marinas , Will Deacon , Thomas Gleixner , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] arm64/smp: Remove unused irq variable in arch_show_interrupts() Date: Tue, 29 Dec 2020 09:17:48 +0100 Message-Id: <20201229081748.1530671-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/arm64/kernel/smp.c: In function ‘arch_show_interrupts’: arch/arm64/kernel/smp.c:808:16: warning: unused variable ‘irq’ [-Wunused-variable] 808 | unsigned int irq = irq_desc_get_irq(ipi_desc[i]); | ^~~ The removal of the last user forgot to remove the variable. Fixes: 5089bc51f81f05ad ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()") Signed-off-by: Geert Uytterhoeven --- v2: - Update Fixes tag, as the offending commit was rebased just before being sent upstream. arch/arm64/kernel/smp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 6bc3a3698c3d1ea9..376343d6f13aec5d 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -807,7 +807,6 @@ int arch_show_interrupts(struct seq_file *p, int prec) unsigned int cpu, i; for (i = 0; i < NR_IPI; i++) { - unsigned int irq = irq_desc_get_irq(ipi_desc[i]); seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i, prec >= 4 ? " " : ""); for_each_online_cpu(cpu) -- 2.25.1