linux-next: build failure after merge of the pci tree
Subsystems (2)
Hi Bjorn,
After merging the pci tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup_device':arch/powerpc/kernel/pci-common.c:406:15: error: 'virq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
pci_dev->irq = virq;
~~~~~~~~~~~~~^~~~~~arch/powerpc/kernel/pci-common.c:365:15: note: 'virq' was declared here
unsigned int virq;
^~~~Caused by commit
c5042ac60fe5 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper")
I have applied the following patch for today:
From: Stephen Rothwell <[email protected]>
Date: Thu, 25 Jan 2018 16:44:19 +1100
Subject: [PATCH] powerpc/pci: fix for "Use of_irq_parse_and_map_pci() helper"
--- arch/powerpc/kernel/pci-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/pci-common.c +1 -1
@@ -362,7 +362,7 @@ struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node)*/ static int pci_read_irq_line (struct pci_dev *pci_dev) { -unsigned int virq; +unsigned int virq =0 ;pr_debug ("PCI: Try to map irq for %s...\n" ,pci_name (pci_dev));
Signature · 5 lines
2.15.1 -- Cheers, Stephen Rothwell
Rob Herring
Acked-byQuoted 5 lines · Stephen Rothwell
Hi Bjorn,
After merging the pci tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
Quoted 8 lines
arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup_device':arch/powerpc/kernel/pci-common.c:406:15: error: 'virq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
pci_dev->irq= virq;
~~~~~~~~~~~~~^~~~~~arch/powerpc/kernel/pci-common.c:365:15: note: 'virq' was declared hereunsigned int virq; ^~~~
I guess I need to update my PPC compiler from 4.8.0. It doesn't warn or error on this. Neither did 0-day.
Quoted 11 lines
Caused by commit
c5042ac60fe5("powerpc/pci: Useof_irq_parse_and_map_pci()helper")I have applied the following patch for today:
From: Stephen Rothwell <[email protected]>
Date: Thu, 25 Jan 2018 16:44:19 +1100
Subject: [PATCH] powerpc/pci: fix for "Useof_irq_parse_and_map_pci()helper"
Quoted 5 lines
Fixes c5042ac60fe5 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper")Signed-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/kernel/pci-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 20 lines
arch/powerpc/kernel/pci-common.c +1
-2@@ -362,7 +362,7 @@ struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node)*/ static int pci_read_irq_line (struct pci_dev *pci_dev) { -unsigned int virq; +unsigned int virq =0 ;pr_debug ("PCI: Try to map irq for %s...\n" ,pci_name (pci_dev)); --2.15.1
--
Cheers,
Stephen Rothwell
Quoted 49 lines · Rob Herring
Quoted 5 lines · Stephen Rothwell
Hi Bjorn,
After merging the pci tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:Quoted 8 lines
arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup_device':arch/powerpc/kernel/pci-common.c:406:15: error: 'virq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
pci_dev->irq= virq;
~~~~~~~~~~~~~^~~~~~arch/powerpc/kernel/pci-common.c:365:15: note: 'virq' was declared hereunsigned int virq; ^~~~I guess I need to update my PPC compiler from 4.8.0. It doesn't warn or error on this. Neither did 0-day.
Quoted 11 lines
Caused by commit
c5042ac60fe5("powerpc/pci: Useof_irq_parse_and_map_pci()helper")I have applied the following patch for today:
From: Stephen Rothwell <[email protected]>
Date: Thu, 25 Jan 2018 16:44:19 +1100
Subject: [PATCH] powerpc/pci: fix for "Useof_irq_parse_and_map_pci()helper"Quoted 5 lines
Fixes c5042ac60fe5 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper")Signed-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/kernel/pci-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Acked-by Rob Herring <[email protected]>Quoted 12 lines
arch/powerpc/kernel/pci-common.c +1
-1@@ -362,7 +362,7 @@ struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node)*/ static int pci_read_irq_line (struct pci_dev *pci_dev) { -unsigned int virq; +unsigned int virq =0 ;
Quoted 2 lines
arch/powerpc/kernel/pci-common.c struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node) · line 368
Quoted 2 lines
arch/powerpc/kernel/pci-common.c +0
-0pr_debug ("PCI: Try to map irq for %s...\n" ,pci_name (pci_dev));
I folded this fix into my branch, so it should be fixed tonight. Thanks!
Michael Ellerman
reviewerQuoted 15 lines · Rob Herring
Quoted 5 lines · Stephen Rothwell
Hi Bjorn,
After merging the pci tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:Quoted 8 lines
arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup_device':arch/powerpc/kernel/pci-common.c:406:15: error: 'virq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
pci_dev->irq= virq;
~~~~~~~~~~~~~^~~~~~arch/powerpc/kernel/pci-common.c:365:15: note: 'virq' was declared hereunsigned int virq; ^~~~
Quoted 2 lines
I guess I need to update my PPC compiler from 4.8.0. It doesn't warn or error on this. Neither did 0-day.
https://toolchains.free-electrons.com/
Has 5.4.0 and 7.2.0 for both big and little endian.
cheers