iommu/mediatek: Mark static functions in headers inline
Subsystems (3)
Joerg Roedel
maintainerPATCH 1/1 iommu/mediatek: Mark static functions in headers inline
From: Joerg Roedel <[email protected]>
This was an oversight while merging these functions. Fix it.
Cc Honghui Zhang <honghui.zhang-NuS5LvNUpcJWk0Htik3J/[email protected]>
Fixes 9ca340c98c0d ('iommu/mediatek: move the common struct into header file')
Signed-off-by Joerg Roedel <[email protected]>
--- drivers/iommu/mtk_iommu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iommu/mtk_iommu.h +3 -3
@@ -55,19 +55,19 @@ struct mtk_iommu_data {bool enable_4GB; }; -static int compare_of (struct device *dev,void *data) +static inline int compare_of (struct device *dev,void *data) {return dev->of_node == data; } -static int mtk_iommu_bind (struct device *dev) +static inline int mtk_iommu_bind (struct device *dev) {struct mtk_iommu_data *data =dev_get_drvdata (dev);return component_bind_all (dev, &data->smi_imu); } -static void mtk_iommu_unbind (struct device *dev) +static inline void mtk_iommu_unbind (struct device *dev) {struct mtk_iommu_data *data =dev_get_drvdata (dev);
Signature · 1 line
2.6.6