Thread (26 messages) flat view 26 messages, 5 authors, 2013-08-09

[PATCHv8 04/10] of: pci: add registry of MSI chips

From: benh@kernel.crashing.org (Benjamin Herrenschmidt)
Date: 2013-08-09 05:49:06
Also in: linux-pci

On Fri, 2013-08-09 at 00:17 +0200, Thomas Petazzoni wrote:
+#if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI)
+int of_pci_msi_chip_add(struct msi_chip *chip);
+void of_pci_msi_chip_remove(struct msi_chip *chip);
+struct msi_chip *of_pci_find_msi_chip_by_node(struct device_node
*of_node);
+#else
+static inline int of_pci_msi_chip_add(struct msi_chip *chip) { return
-EINVAL; }
+static inline void of_pci_msi_chip_remove(struct msi_chip *chip) { }
Missing a ; at the end of the above line... breaks the build of
CONFIG_PCI_MSI is not set.
+static inline struct msi_chip *
+of_pci_find_msi_chip_by_node(struct device_node *of_node) { return
NULL };
+#endif
+
 #endif
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help