From: Tom Rini Date: Wed, 1 Jul 2020 15:46:45 +0000 (-0400) Subject: pci: rockchip: Mark inline functions as static inline X-Git-Tag: v2020.10~139^2~1^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8214791daa290119243134fcfbebe631fd0ed249;p=platform%2Fkernel%2Fu-boot.git 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 Cc: Kever Yang Signed-off-by: Tom Rini --- diff --git a/drivers/pci/pcie_rockchip.h b/drivers/pci/pcie_rockchip.h index c3a0a28..845d505 100644 --- a/drivers/pci/pcie_rockchip.h +++ b/drivers/pci/pcie_rockchip.h @@ -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; }