android: ion: fix compile error
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Tue, 6 Mar 2018 02:03:28 +0000 (11:03 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:24 +0000 (19:45 +0900)
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>
drivers/staging/android/ion/ion_exynos.h

index 9a6209810c82ae475cc0fb35b531df15ee28a665..1d9c9410cdd5d3b6c004867491b866a924aa132e 100644 (file)
@@ -99,8 +99,9 @@ static inline int exynos_ion_alloc_fixup(struct ion_device *idev,
 
 #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);
 }