summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-06-11 11:14:33 -0700
committerTom Rini <trini@ti.com>2013-06-26 10:16:40 -0400
commitbc3442aaed26f16a0b9d1caa55cbe3bd94d16a86 (patch)
tree1055a6dff06ce346ba36c6d03b20d8422c40d06d
parenteb28fdac79bb145d6978abe86a2e0ad0a545319d (diff)
downloadu-boot-imx-bc3442aaed26f16a0b9d1caa55cbe3bd94d16a86.zip
u-boot-imx-bc3442aaed26f16a0b9d1caa55cbe3bd94d16a86.tar.gz
u-boot-imx-bc3442aaed26f16a0b9d1caa55cbe3bd94d16a86.tar.bz2
pci: Convert extern inline functions to static inline
I am not sure of the meaning of extern inline, but this gives errors when building with function instrumenting enabled. Change these functions to static inline. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pci.h b/include/pci.h
index f9c5148..98ba151 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -462,7 +462,7 @@ struct pci_region {
#define PCI_REGION_SYS_MEMORY 0x00000100 /* System memory */
#define PCI_REGION_RO 0x00000200 /* Read-only memory */
-extern __inline__ void pci_set_region(struct pci_region *reg,
+static inline void pci_set_region(struct pci_region *reg,
pci_addr_t bus_start,
phys_addr_t phys_start,
pci_size_t size,
@@ -548,7 +548,7 @@ struct pci_controller {
void *priv_data;
};
-extern __inline__ void pci_set_ops(struct pci_controller *hose,
+static inline void pci_set_ops(struct pci_controller *hose,
int (*read_byte)(struct pci_controller*,
pci_dev_t, int where, u8 *),
int (*read_word)(struct pci_controller*,