This patch fixed below compile error when CONFIG_ION_EXYNOS is not
defined.
In file included from drivers/staging/android/ion/ion.c:42:0:
drivers/staging/android/ion/ion_exynos.h:102:25: error:
'ion_exynos_map_dma_buf' defined but not used [-Werror=unused-function]
static struct sg_table *ion_exynos_map_dma_buf(struct
dma_buf_attachment *att,
Change-Id: I22b9d0e87856bff9a9e307e49698fa9fa3677a3b
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
#define exynos_ion_free_fixup(buffer) do { } while (0)
-static struct sg_table *ion_exynos_map_dma_buf(struct dma_buf_attachment *att,
- enum dma_data_direction dir)
+static inline struct sg_table *ion_exynos_map_dma_buf(
+ struct dma_buf_attachment *att,
+ enum dma_data_direction dir)
{
return ERR_PTR(-ENODEV);
}