[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1440490513-9347-1-git-send-email-yalin.wang2010@gmail.com>
Date: Tue, 25 Aug 2015 16:15:13 +0800
From: yalin wang <yalin.wang2010@...il.com>
To: vinod.koul@...el.com, dan.j.williams@...el.com, tglx@...utronix.de,
robh@...nel.org, yalin.wang2010@...il.com,
jiang.liu@...ux.intel.com, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH V2] dma/ipu: change ipu_irq_handler() to remove compile warning
Change ipu_irq_handler() to avoid gcc warning:
drivers/dma/ipu/ipu_irq.c:305:4: warning: 'irq' may be used
uninitialized in this function [-Wmaybe-uninitialized]
generic_handle_irq(irq);
Signed-off-by: yalin wang <yalin.wang2010@...il.com>
---
drivers/dma/ipu/ipu_irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/ipu/ipu_irq.c b/drivers/dma/ipu/ipu_irq.c
index 7489d2a..4768a82 100644
--- a/drivers/dma/ipu/ipu_irq.c
+++ b/drivers/dma/ipu/ipu_irq.c
@@ -286,7 +286,7 @@ static void ipu_irq_handler(unsigned int __irq, struct irq_desc *desc)
raw_spin_unlock(&bank_lock);
while ((line = ffs(status))) {
struct ipu_irq_map *map;
- unsigned int irq;
+ unsigned int irq = NO_IRQ;
line--;
status &= ~(1UL << line);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists