Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp7035659pxu; Thu, 24 Dec 2020 23:07:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyym3nfhLyxUFoOcDYfaUrv7Mx9U8X1Y7Yuy9MpXAuDJm7YinDL7z3ExAIHGUnep8Q40PIS X-Received: by 2002:a17:906:d8dc:: with SMTP id re28mr30946553ejb.168.1608880073787; Thu, 24 Dec 2020 23:07:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608880073; cv=none; d=google.com; s=arc-20160816; b=pmbKsZWl+3tlGlhD66furSTyL+1Xw1jhA3IPiq1ilUDgN49uwP6HLDgJtM+8VKFUxC lyYBsW6zVQepzFxMzPaEIDHeXeWLY7wnAKHMMbDp4I0H2WZVLUEA4sPE0Bvqx+Dm0wWX xDjT93hXoa709P3qIvg87xrg3iQ+bNcfMY98I89J4Kc2SuslsRQ1x7yicEi78wQC2wM6 GPgub2uwr9yiZHCvhSPxlEueCzpiFJRkxsz1++3wcIP+Cc6Jn6GwqbvqEuN4t6vOR9SB bTn0T3bG1cHg4xD5SxRr0NhwZLOLAs4N17goPVtQx/00waxU66yvI2RZhqH5kk+i5Q6z Qo0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=jljBKULNG9rLgxmchnBbO5QCGVWswXUWXNxEUUe/GLQ=; b=c+i+EkyFCnsLZpXDEUhXNZAXUnkswZgNo6kPEMbIFXEMnuYCHKkq2iNyV4rC2vSyBh YQvLUkZXq4oba0W9+UOQJnW/LzwdVwFdLVbD9AMybSgn0yi6yRjM+ZwBCZE5iQoiGAzt +kl5hMVQHiF5Bw+AaefH1EIUQiONkE8PVSxzGZ3Sa+HldSYfHhAltXdhf6JHpJKhk2QV 9LxwlLast8GqiYlKqEWkaomXX7ekyYrhRsPuXT7FHHBLkXv/6M7vgb+z17CrMR4QIe2/ WtIZ8h9IKijEJGnStU0CgYF0U5dcjM7AJnSN8KDuBpJp9mIqhDTVBG7waMGkE12V9kTj yMdQ== 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 t17si13359921eji.269.2020.12.24.23.07.20; Thu, 24 Dec 2020 23:07:53 -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 S1728334AbgLYHGS (ORCPT + 99 others); Fri, 25 Dec 2020 02:06:18 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9992 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbgLYHGS (ORCPT ); Fri, 25 Dec 2020 02:06:18 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4D2Hxt5Y66zhy0w; Fri, 25 Dec 2020 15:04:50 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Fri, 25 Dec 2020 15:05:28 +0800 Subject: Re: [PATCH] arm64/smp: Remove unused irq variable in arch_show_interrupts() To: Geert Uytterhoeven , Thomas Gleixner , Marc Zyngier , Catalin Marinas , Will Deacon CC: Gavin Shan , , , References: <20201215103026.2872532-1-geert+renesas@glider.be> From: Zenghui Yu Message-ID: <12e192f7-cef5-5dc1-32e4-75a97e77e9c6@huawei.com> Date: Fri, 25 Dec 2020 15:05:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20201215103026.2872532-1-geert+renesas@glider.be> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()"). Thanks, Zenghui