From: Joonyoung Shim Date: Thu, 7 Jul 2016 05:02:21 +0000 (+0900) Subject: ARM: mali400: r5p2_rel0: use get_unused_fd_flags(O_CLOEXEC) instead of get_unused_fd() X-Git-Tag: submit/tizen/20160810.050017~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a79f3dce6ef4046641b6f7a6656e1573625b1c44;p=platform%2Fkernel%2Flinux-exynos.git ARM: mali400: r5p2_rel0: use get_unused_fd_flags(O_CLOEXEC) instead of get_unused_fd() get_unused_fd() was changed to get_unused_fd_flags() by the commit 1a7bd2265fc5 ("make get_unused_fd_flags() a function"), so it causes build error, drivers/gpu/arm/mali400/r5p2_rel0/linux/mali_sync.c: In function 'mali_sync_fence_fd_alloc': drivers/gpu/arm/mali400/r5p2_rel0/linux/mali_sync.c:235:2: error: implicit declaration of function 'get_unused_fd' [-Werror=implicit-function-declaration] fd = get_unused_fd(); ^ This patch was refered from the commit 45acea57335e ("android/sw_sync: use get_unused_fd_flags(O_CLOEXEC) instead of get_unused_fd()") Signed-off-by: Joonyoung Shim --- diff --git a/drivers/gpu/arm/mali400/r5p2_rel0/linux/mali_sync.c b/drivers/gpu/arm/mali400/r5p2_rel0/linux/mali_sync.c index 6feb902706d8..825971dc40a0 100644 --- a/drivers/gpu/arm/mali400/r5p2_rel0/linux/mali_sync.c +++ b/drivers/gpu/arm/mali400/r5p2_rel0/linux/mali_sync.c @@ -14,6 +14,7 @@ #include "mali_kernel_common.h" #include "mali_timeline.h" +#include #include #include #include @@ -232,7 +233,7 @@ s32 mali_sync_fence_fd_alloc(struct sync_fence *sync_fence) { s32 fd = -1; - fd = get_unused_fd(); + fd = get_unused_fd_flags(O_CLOEXEC); if (fd < 0) { sync_fence_put(sync_fence); return -1;