Commit bc3442aaed26f16a0b9d1caa55cbe3bd94d16a86
Committed by
Tom Rini
1 parent
eb28fdac79
Exists in
master
and in
56 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
include/pci.h
| ... | ... | @@ -462,7 +462,7 @@ |
| 462 | 462 | #define PCI_REGION_SYS_MEMORY 0x00000100 /* System memory */ |
| 463 | 463 | #define PCI_REGION_RO 0x00000200 /* Read-only memory */ |
| 464 | 464 | |
| 465 | -extern __inline__ void pci_set_region(struct pci_region *reg, | |
| 465 | +static inline void pci_set_region(struct pci_region *reg, | |
| 466 | 466 | pci_addr_t bus_start, |
| 467 | 467 | phys_addr_t phys_start, |
| 468 | 468 | pci_size_t size, |
| ... | ... | @@ -548,7 +548,7 @@ |
| 548 | 548 | void *priv_data; |
| 549 | 549 | }; |
| 550 | 550 | |
| 551 | -extern __inline__ void pci_set_ops(struct pci_controller *hose, | |
| 551 | +static inline void pci_set_ops(struct pci_controller *hose, | |
| 552 | 552 | int (*read_byte)(struct pci_controller*, |
| 553 | 553 | pci_dev_t, int where, u8 *), |
| 554 | 554 | int (*read_word)(struct pci_controller*, |