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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <sfr@xxxxxxxxxxxxxxxx>
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 <sfr@xxxxxxxxxxxxxxxx>
---
 drivers/pci/pci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 345db6844690..7dc82eac5b04 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -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;
 }
-- 
2.45.2

-- 
Cheers,
Stephen Rothwell

Attachment: pgpqL_Wr9n7R0.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux