From 388113aa19c202edd261e49f8c169f0b31ade784 Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary Date: Tue, 25 Apr 2017 11:25:57 +0530 Subject: gpu: nvgpu: replace __alloc_fd with tegra_fd_alloc nvgpu is being modularized for kernel-4.4 and newer kernels. __alloc_fd() can't be used on modules as it is not exported. So, use a wrapper tegra_fd_alloc() instead of __alloc_fd() bug 200290850 Change-Id: I0e63307d429774440753698643ba7620c1e1f9f6 Signed-off-by: Sri Krishna chowdary Reviewed-on: http://git-master/r/1469313 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 00892e98..d95a2cde 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include @@ -1874,7 +1874,7 @@ int gk20a_vidmem_buf_alloc(struct gk20a *g, size_t bytes) goto err_bfree; } - fd = __alloc_fd(current->files, 1024, sysctl_nr_open, O_RDWR); + fd = tegra_alloc_fd(current->files, 1024, O_RDWR); if (fd < 0) { /* ->release frees what we have done */ dma_buf_put(buf->dmabuf); -- cgit v1.2.2