All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yanteng Si <siyanteng01@gmail.com>
To: tsbogend@alpha.franken.de
Cc: Yanteng Si <siyanteng@loongson.cn>,
	maz@kernel.org, mark.rutland@arm.com, linux-mips@vger.kernel.org,
	chenhuacai@kernel.org
Subject: [PATCH] MIPS: irq: avoid an unused-variable error
Date: Thu, 28 Oct 2021 17:56:52 +0800	[thread overview]
Message-ID: <20211028095652.3503790-1-siyanteng@loongson.cn> (raw)

When CONFIG_IRQ_DOMAIN is set, there is a build error:
arch/mips/kernel/irq.c:114:19: error: unused variable 'desc' [-Werror=unused-variable]
  114 |  struct irq_desc *desc;
      |                   ^~~~

This variable is alone at here, let's remove it.

Signed-off-by: Yanteng Si <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 1fee96ef8059..5e11582fe308 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);
-- 
2.27.0


             reply	other threads:[~2021-10-28  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-28  9:56 Yanteng Si [this message]
2021-10-28 13:23 ` [irqchip: irq/irqchip-next] MIPS: irq: Avoid an unused-variable error irqchip-bot for Yanteng Si

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211028095652.3503790-1-siyanteng@loongson.cn \
    --to=siyanteng01@gmail.com \
    --cc=chenhuacai@kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=siyanteng@loongson.cn \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.