[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181224172058.56206-1-cai@lca.pw>
Date: Mon, 24 Dec 2018 12:20:58 -0500
From: Qian Cai <cai@....pw>
To: sfr@...b.auug.org.au, lorenzo.pieralisi@....com,
hanjun.guo@...aro.org, sudeep.holla@....com
Cc: linux-acpi@...r.kernel.org, linux-next@...r.kernel.org,
linux-kernel@...r.kernel.org, Qian Cai <cai@....pw>
Subject: [PATCH -next] ACPI/IORT: fix build when CONFIG_IOMMU_API=n
rivers/acpi/arm64/iort.c:880:1: error: expected identifier or '(' before '{' token
{ return NULL; }
^
drivers/acpi/arm64/iort.c:879:39: warning: 'iort_fwspec_iommu_ops' used but never defined
static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev);
^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Qian Cai <cai@....pw>
---
drivers/acpi/arm64/iort.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index fdd90ffceb85..5d29783ee5bd 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -876,7 +876,7 @@ int iort_iommu_msi_get_resv_regions(struct device *dev, struct list_head *head)
return (resv == its->its_count) ? resv : -ENODEV;
}
#else
-static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev);
+static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev)
{ return NULL; }
static inline int iort_add_device_replay(const struct iommu_ops *ops,
struct device *dev)
--
2.17.2 (Apple Git-113)
Powered by blists - more mailing lists