[<prev] [next>] [day] [month] [year] [list]
Message-ID: <163542740410.626.5186631730404597986.tip-bot2@tip-bot2>
Date: Thu, 28 Oct 2021 13:23:24 -0000
From: "irqchip-bot for Yanteng Si" <tip-bot2@...utronix.de>
To: linux-kernel@...r.kernel.org
Cc: Yanteng Si <siyanteng@...ngson.cn>, Marc Zyngier <maz@...nel.org>,
tglx@...utronix.de
Subject: [irqchip: irq/irqchip-next] MIPS: irq: Avoid an unused-variable error
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 34fca8947b2743e6a3a9a8a3a44962e625993533
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/34fca8947b2743e6a3a9a8a3a44962e625993533
Author: Yanteng Si <siyanteng01@...il.com>
AuthorDate: Thu, 28 Oct 2021 17:56:52 +08:00
Committer: Marc Zyngier <maz@...nel.org>
CommitterDate: Thu, 28 Oct 2021 13:28:52 +01:00
MIPS: irq: Avoid an unused-variable error
When CONFIG_IRQ_DOMAIN is set, there is a warning:
arch/mips/kernel/irq.c:114:19: error: unused variable 'desc' [-Werror=unused-variable]
114 | struct irq_desc *desc;
| ^~~~
This variable is unused, let's remove it.
Signed-off-by: Yanteng Si <siyanteng@...ngson.cn>
Signed-off-by: Marc Zyngier <maz@...nel.org>
Link: https://lore.kernel.org/r/20211028095652.3503790-1-siyanteng@loongson.cn
---
arch/mips/kernel/irq.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c
index 1fee96e..5e11582 100644
--- a/arch/mips/kernel/irq.c
+++ b/arch/mips/kernel/irq.c
@@ -111,8 +111,6 @@ void __irq_entry do_IRQ(unsigned int irq)
#ifdef CONFIG_IRQ_DOMAIN
void __irq_entry do_domain_IRQ(struct irq_domain *domain, unsigned int hwirq)
{
- struct irq_desc *desc;
-
irq_enter();
check_stack_overflow();
generic_handle_domain_irq(domain, hwirq);
Powered by blists - more mailing lists