linux-next: build failure after merge of the pci tree
Subsystems (2)
Hi all,
After merging the pci tree, today's linux-next build (i386 defconfig) failed like this:
In file included from drivers/pci/msi/pcidev_msi.c:5:drivers/pci/msi/../pci.h:862:1: error: expected identifier or '(' before '{' token
862 | {
| ^
drivers/pci/msi/../pci.h:861:20: error: 'of_pci_is_supply_present' declared 'static' but never defined [-Werror=unused-function]
861 | static inline bool of_pci_is_supply_present(struct device_node *np);
| ^~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
0a93ef0a2d90 ("PCI/pwrctl: Create pwrctl devices only if at least one power supply is present")
I have applied the following patch for today.
From: Stephen Rothwell <[email protected]>
Date: Thu, 7 Nov 2024 22:53:24 +1100
Subject: [PATCH] fixup for "PCI/pwrctl: Create pwrctl devices only if at least
one power supply is present"
--- drivers/pci/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci.h +1 -1
@@ -858,7 +858,7 @@ static inline int devm_of_pci_bridge_init(struct device *dev, struct pci_host_brreturn 0 ; } -static inline bool of_pci_is_supply_present (struct device_node *np); +static inline bool of_pci_is_supply_present (struct device_node *np) {return false; }
Signature · 5 lines
2.45.2 -- Cheers, Stephen Rothwell
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the pci tree, today's linux-next build (i386 defconfig) failed like this:
Quoted 7 lines
In file included from
drivers/pci/msi/pcidev_msi.c:5:drivers/pci/msi/../pci.h:862:1: error: expected identifier or '(' before '{' token862 | { | ^ drivers/pci/msi/../pci.h:861:20: error: 'of_pci_is_supply_present' declared 'static' but never defined [-Werror=unused-function] 861 | static inline bool of_pci_is_supply_present(struct device_node *np); | ^~~~~~~~~~~~~~~~~~~~~~~~
That's silly on me. Krzysztof, could you please fix it in the branch?
- Mani
Quoted 37 lines
cc1: all warnings being treated as errors
Caused by commit
0a93ef0a2d90("PCI/pwrctl: Create pwrctl devices only if at least one power supply is present")I have applied the following patch for today.
From: Stephen Rothwell <[email protected]>
Date: Thu, 7 Nov 2024 22:53:24 +1100
Subject: [PATCH] fixup for "PCI/pwrctl: Create pwrctl devices only if at least
one power supply is present"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/pci/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pci/pci.h +1
-1@@ -858,7 +858,7 @@ static inline int devm_of_pci_bridge_init(struct device *dev, struct pci_host_brreturn 0 ; } -static inline bool of_pci_is_supply_present (struct device_node *np); +static inline bool of_pci_is_supply_present (struct device_node *np) {return false; }Signature · 5 lines
2.45.2 -- Cheers, Stephen Rothwell
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 14 lines · Manivannan Sadhasivam
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the pci tree, today's linux-next build (i386 defconfig) failed like this:
Quoted 7 lines
In file included from
drivers/pci/msi/pcidev_msi.c:5:drivers/pci/msi/../pci.h:862:1: error: expected identifier or '(' before '{' token862 | { | ^ drivers/pci/msi/../pci.h:861:20: error: 'of_pci_is_supply_present' declared 'static' but never defined [-Werror=unused-function] 861 | static inline bool of_pci_is_supply_present(struct device_node *np); | ^~~~~~~~~~~~~~~~~~~~~~~~
Quoted 1 line
That's silly on me. Krzysztof, could you please fix it in the branch?
I fixed it, thanks for the report.