From: Janghyuck Kim Date: Tue, 6 Mar 2018 02:03:28 +0000 (+0900) Subject: android: ion: fix compile error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42da552e21f92f1b055b3137d7a5450c605976b4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git android: ion: fix compile error 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 --- diff --git a/drivers/staging/android/ion/ion_exynos.h b/drivers/staging/android/ion/ion_exynos.h index 9a6209810c82..1d9c9410cdd5 100644 --- a/drivers/staging/android/ion/ion_exynos.h +++ b/drivers/staging/android/ion/ion_exynos.h @@ -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); }