aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-18 09:16:02 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-18 10:55:06 +0200
commit183e9843e1b694cc6183de6855b897a85b0a2a36 (patch)
tree117b384d38ef428e88ef73f815c6ffba9f03cc0e /target/linux
parenta9eebf69f3787d2637ffb2353528d6c24f20769a (diff)
downloadupstream-183e9843e1b694cc6183de6855b897a85b0a2a36.tar.gz
upstream-183e9843e1b694cc6183de6855b897a85b0a2a36.tar.bz2
upstream-183e9843e1b694cc6183de6855b897a85b0a2a36.zip
bcm63xx: periph_intc: fix warning
drivers/irqchip/irq-bcm6345-periph.c: In function 'bcm6345_periph_irq_handle': drivers/irqchip/irq-bcm6345-periph.c:55:21: warning: 'block' may be used uninitialized in this function [-Wmaybe-uninitialized] struct intc_block *block; ^~~~~ Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> (cherry picked from commit f2f2cf07a61e9c170ab8d65e1e054f0131a84e2a)
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm63xx/patches-4.9/324-irqchip-bcm6345-periph-fix-block-uninitialized.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-4.9/324-irqchip-bcm6345-periph-fix-block-uninitialized.patch b/target/linux/brcm63xx/patches-4.9/324-irqchip-bcm6345-periph-fix-block-uninitialized.patch
new file mode 100644
index 0000000000..60a645e1bf
--- /dev/null
+++ b/target/linux/brcm63xx/patches-4.9/324-irqchip-bcm6345-periph-fix-block-uninitialized.patch
@@ -0,0 +1,20 @@
+--- a/drivers/irqchip/irq-bcm6345-periph.c
++++ b/drivers/irqchip/irq-bcm6345-periph.c
+@@ -52,7 +52,7 @@ static void bcm6345_periph_irq_handle(st
+ {
+ struct intc_data *data = irq_desc_get_handler_data(desc);
+ struct irq_chip *chip = irq_desc_get_chip(desc);
+- struct intc_block *block;
++ struct intc_block *block = NULL;
+ unsigned int irq = irq_desc_get_irq(desc);
+ unsigned int idx;
+
+@@ -62,7 +62,7 @@ static void bcm6345_periph_irq_handle(st
+ if (irq == data->block[idx].parent_irq)
+ block = &data->block[idx];
+
+- for (idx = 0; idx < data->num_words; idx++) {
++ for (idx = 0; block && idx < data->num_words; idx++) {
+ int base = idx * IRQS_PER_WORD;
+ unsigned long pending;
+ int hw_irq;