mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 20:34:38 +00:00
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>
This commit is contained in:
parent
eb28fdac79
commit
bc3442aaed
1 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ struct pci_region {
|
||||||
#define PCI_REGION_SYS_MEMORY 0x00000100 /* System memory */
|
#define PCI_REGION_SYS_MEMORY 0x00000100 /* System memory */
|
||||||
#define PCI_REGION_RO 0x00000200 /* Read-only 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,
|
pci_addr_t bus_start,
|
||||||
phys_addr_t phys_start,
|
phys_addr_t phys_start,
|
||||||
pci_size_t size,
|
pci_size_t size,
|
||||||
|
@ -548,7 +548,7 @@ struct pci_controller {
|
||||||
void *priv_data;
|
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*,
|
int (*read_byte)(struct pci_controller*,
|
||||||
pci_dev_t, int where, u8 *),
|
pci_dev_t, int where, u8 *),
|
||||||
int (*read_word)(struct pci_controller*,
|
int (*read_word)(struct pci_controller*,
|
||||||
|
|
Loading…
Add table
Reference in a new issue