mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
pci: rockchip: Mark inline functions as static inline
Unless we mark the function as 'static inline' it may end up being non-inlined by the compiled and result in duplicate functions. Cc: Jagan Teki <jagan@amarulasolutions.com> Cc: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
6ca300aec0
commit
8214791daa
1 changed files with 2 additions and 3 deletions
|
@ -130,13 +130,12 @@ struct rockchip_pcie {
|
|||
|
||||
int rockchip_pcie_phy_get(struct udevice *dev);
|
||||
|
||||
inline struct rockchip_pcie_phy *pcie_get_phy(struct rockchip_pcie *pcie)
|
||||
static inline struct rockchip_pcie_phy *pcie_get_phy(struct rockchip_pcie *pcie)
|
||||
{
|
||||
return pcie->phy;
|
||||
}
|
||||
|
||||
inline
|
||||
struct rockchip_pcie_phy_ops *phy_get_ops(struct rockchip_pcie_phy *phy)
|
||||
static inline struct rockchip_pcie_phy_ops *phy_get_ops(struct rockchip_pcie_phy *phy)
|
||||
{
|
||||
return (struct rockchip_pcie_phy_ops *)phy->ops;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue