Skip to contentSkip to conversation

linux-next: build failure after merge of the pci tree

PATCH Stephen Rothwell 3 participants 3 messages Nov 7, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 345db6844690..7dc82eac5b04 100644
@@ -858,7 +858,7 @@ static inline int devm_of_pci_bridge_init(struct device *dev, struct pci_host_br
 	return 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
#1 lore raw
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 '{' 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);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~

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"

---
 drivers/pci/pci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci.h +1 -1
index 345db6844690..7dc82eac5b04 100644
@@ -858,7 +858,7 @@ static inline int devm_of_pci_bridge_init(struct device *dev, struct pci_host_br
 	return 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
மணிவண்ணன் சதாசிவம்
#2 lore raw
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 '{' 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);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
Quoted 1 line

That's silly on me. Krzysztof, could you please fix it in the branch?

I fixed it, thanks for the report.