Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3740384pxb; Tue, 26 Jan 2021 03:36:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlci1buEJgT8NZ+GlXiq9zyf6lAm2wRziBgB/tnVhWb0GJf5i322SJ4ebjy6geBooD2/lj X-Received: by 2002:aa7:dd16:: with SMTP id i22mr4147233edv.215.1611660985708; Tue, 26 Jan 2021 03:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611660985; cv=none; d=google.com; s=arc-20160816; b=BhvroCVVj/GzDq2Ls7FCLi5CTkz+HhbouCYxsGvhPY7ydyptYWIVSwpnsb2yGmX+AT YIeo/Qb0O47+YLxw/1a7NmS33iV5qbjWoqjUhiZ3m7B0TX+T5IUeO4POSnsVfrmmEZ1U hsxndWuSkjHPpbpryoNokmeCzHW2Yesy0Eki441in2pJNruExtnFcY1qqK6VyLYOKJUf bQ1o5BgZz/e1G3+b8/8Qhno8uyROt5NB6X5rSRp40ts7gzh7WdTFlberBxFnonXa2bXu eKjen+fwFrQEq3umV5p8vaSg/5YKs64axbnCZbbc+/yTu5Eh4JxDvQ+bFWTsAsYj6B4E FGCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=UA5U0QUtRanAol9jN0xZCeu0bRxSTCj0OjzV8oqani4=; b=fCfrVW1x2fu+QJSlsZIbwH7fn/kmK4mqo0Solv3v3wGh2+EVIIiYSlLxW4s7iUuG16 XLA8/w0eVpkWmeU+RgCPS69XDEn5paPMyvoZtMk5fl/mXIz4zX3CHpO4PBs4f4VPBhja 7rv5kknzWaPj70uCjX4b5Y0q5bDbnsGN9cA71aPiCE4Q2F7s6fA0kKmv2hiH7ASi3/O2 tuRPPEEDCJjpqVw6+RvtE2OV0Zelrf6th6InhEEy9GiD5yk78BBMMcJTLPNSWsiPGlnk 0tFi2vKjs4SdMWygCCoAvAgjOE/yhFn7Yd3alGNpA5i6m9mdT8C6IydHqz0M3IzGjzx/ XdXg== 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 u16si6654680ejb.649.2021.01.26.03.36.01; Tue, 26 Jan 2021 03:36:25 -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 S2405192AbhAZLeT convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Jan 2021 06:34:19 -0500 Received: from mail-ot1-f52.google.com ([209.85.210.52]:33580 "EHLO mail-ot1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391839AbhAZKHj (ORCPT ); Tue, 26 Jan 2021 05:07:39 -0500 Received: by mail-ot1-f52.google.com with SMTP id 63so15699249oty.0 for ; Tue, 26 Jan 2021 02:07:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7rwgQ+jtQJy524gPL1rOIz9IKh66R93uWQ9zyZX1c9s=; b=kbv50VCkJehW5DCAN4FXyOF4CZEXfNa7dGvaFsGugaAr5d+he5IZeEEmk5hmzqFBKO 4ht28J3oty6WAYkwZ7h8t+QZkesH6E510mW7v/B/ARF6Ql4k52y58I728Fk+Ym4rq1r8 M2NVLxdXKzYnfWsqmajI39C04wd8Wf7Q/xhz0VIaDBs6sxbQ8hEHdKlELk+8cpEaMqZx 47yzG4uoYNAiH9aK6nFehzYk+/JAPRhlgo+L9rJ8KyP3wu+53zjWOwgt/532hU905G0/ 5z2VQpmd2QAb4V4LKVA+0SgtcivC2dVYRaYA6Q96cv74Zt+jq2JinfzInBq340dKdhUc wvgg== X-Gm-Message-State: AOAM533l7XzxWbnbSDFdm68fAgjX5afMJRfvfEDyesJCyfsFHLFobSXX 8OdXTghhATOLL9Ih9DUb+aGtm3m+Ka1aT8Y1Yw8LYIaTccc= X-Received: by 2002:a05:6830:1489:: with SMTP id s9mr2718860otq.250.1611655617566; Tue, 26 Jan 2021 02:06:57 -0800 (PST) MIME-Version: 1.0 References: <20201215103026.2872532-1-geert+renesas@glider.be> <12e192f7-cef5-5dc1-32e4-75a97e77e9c6@huawei.com> In-Reply-To: <12e192f7-cef5-5dc1-32e4-75a97e77e9c6@huawei.com> From: Geert Uytterhoeven Date: Tue, 26 Jan 2021 11:06:46 +0100 Message-ID: Subject: Re: [PATCH] arm64/smp: Remove unused irq variable in arch_show_interrupts() To: Zenghui Yu Cc: Thomas Gleixner , Marc Zyngier , Catalin Marinas , Will Deacon , Gavin Shan , Linux Kernel Mailing List , Linux ARM , wanghaibin.wang@huawei.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zenghui, On Fri, Dec 25, 2020 at 8:05 AM Zenghui Yu wrote: > On 2020/12/15 18:30, Geert Uytterhoeven wrote: > > 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: 2f516e34383d0e97 ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()") > > This is in mainline now and the commit id is 5089bc51f81f. > > > Signed-off-by: Geert Uytterhoeven > > --- > > One more issue in irq-core-2020-12-14. > > > > 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 3aef3bc22d3250b5..10b39328268687e3 100644 > > --- a/arch/arm64/kernel/smp.c > > +++ b/arch/arm64/kernel/smp.c > > @@ -805,7 +805,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) > > And I guess we have the same problem on 32-bit ARM. 'irq' in > show_ipi_list() is no longer used since commit 88c637748e31 > ("ARM: smp: Use irq_desc_kstat_cpu() in show_ipi_list()"). Indeed. I didn't see it with my compiler version, but Wolfram did, and sent a patch: https://lore.kernel.org/linux-arm-kernel/20201228120147.59387-1-wsa+renesas@sang-engineering.com/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds