From 31432919cac8fc4ddad3b9245cf61ffd47d5db82 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Thu, 29 Mar 2018 16:52:16 -0700 Subject: gpu: nvgpu: vgpu: fix build errors on qnx - Declare global functions before reaching the implementation. - avoid using current (current process). - assign ch->pid/tgid before using them. Jira VFND-4870 Change-Id: I688a1b89ef4d5dcf046929eab11d7e523caba0a5 Signed-off-by: Richard Zhao Reviewed-on: https://git-master.nvidia.com/r/1687142 Reviewed-by: svc-mobile-coverity Reviewed-by: Terje Bergstrom GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c index 21496906..c10a1982 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c @@ -31,9 +31,6 @@ #include #include -#include -#include - #include "mm_vgpu.h" #include "gk20a/gk20a.h" #include "gk20a/mm_gk20a.h" -- cgit v1.2.2