From patchwork Wed Dec 30 15:45:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11993329 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EEEBC433E0 for ; Wed, 30 Dec 2020 15:47:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EAEF320725 for ; Wed, 30 Dec 2020 15:46:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EAEF320725 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SxlHcf8YI4dmaJm+VgVEDvRpds1J8Pd36cPsmqHHrzY=; b=ZlJ6Vg71TmjszLonAd8/MubNy9 dd1c5pyCN7zshEnEcEF7RvnxAv1i1490ZfXKuLOpXqt3Y6Adm47RlIIdph8WAE2wFNtXFLQTuPRfn XNqm3I7k9Y+W4yyKofA8+vn1luQ2KRBksguLT5rI+KUevWw32RHgqA6gsOfXpvMaKmNKE61Ol6h/I Gk1FeMyu4cK3RDe6T5vcBD8iAg+yg1Z3UPSvIapocSFeSIQg/9rB4gGueGR7DFFhkWEkEk+MNX+gY tl4gujqJOlRJc/fI+zVHfXSYbSen5mL9Z84IWLNDlPDjBXLRCkF6gj3gChgG4DD3pVJXGArBMMR+o u12jQZ7w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kudfD-0005Uj-17; Wed, 30 Dec 2020 15:45:27 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kudf7-0005Tc-Tm for linux-arm-kernel@lists.infradead.org; Wed, 30 Dec 2020 15:45:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A39B21D1B; Wed, 30 Dec 2020 15:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609343121; bh=P+xne73UctVsVnC1Gr0TZD3UqOR9IIi7bTByxK8n7+0=; h=From:To:Cc:Subject:Date:From; b=TqzxMtV7+WQSjHIkSNVg3un2pQSVy6qb919XD1hfBTjenNmvf5xdbzXg0d/Nbmoto GBlN7oDDjouAI9hgb0q3sq5etgTRWeX+R/r0WXllDtlTOroTykqug7kI9rPyMs7zsB hG5AiJMI6kZ9NlfQpNJNDbtMHc6naF0o4xGl69N2ir8mHfSNsG/elFiWQ8MBuaVgG4 xIOaF7Rycl/+s3eBtNmv7knqoN9WY5EHh/JUKZouGFUrBTBwp+5pafZ8N22amFK82k cptXaLMJw8993VE7un1pBEmxa/oQ0i0xbQUU8VjwMdrVV0JMUIvoEC24z5ZOaUQaJa 8KFVNj+d//jpg== From: Arnd Bergmann To: Catalin Marinas , Will Deacon , Thomas Gleixner , Marc Zyngier Subject: [PATCH] arm64/smp: Remove unused 'irq' variable Date: Wed, 30 Dec 2020 16:45:04 +0100 Message-Id: <20201230154516.680413-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201230_104522_055816_50417B67 X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Morton , linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The only use of this variable was removed in a recent patch: arch/arm64/kernel/smp.c:810:16: error: unused variable 'irq' [-Werror,-Wunused-variable] unsigned int irq = irq_desc_get_irq(ipi_desc[i]); Fixes: 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()") Signed-off-by: Arnd Bergmann --- 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 6bc3a3698c3d..376343d6f13a 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)