From 4580763b4608706b5be467e67f9242716f10ea09 Mon Sep 17 00:00:00 2001 From: David Nieto Date: Thu, 27 Apr 2017 13:11:26 -0700 Subject: gpu: nvgpu: fix K4.9 sparse messages Fix issues related with wrong storage type for 64 bit variables. (1) Fixed width of HZ_TO_MHZ constant (2) changed fence_wait timeout to store unsigned long bug 200299572 Change-Id: Ie8f2386b738f3aafce75fc2440947e36befac273 Signed-off-by: David Nieto Reviewed-on: http://git-master/r/1471611 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index c26cd250..87fa9fdb 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h @@ -85,7 +85,8 @@ void gk20a_init_fence(struct gk20a_fence *f, /* Fence operations */ void gk20a_fence_put(struct gk20a_fence *f); struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f); -int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, int timeout); +int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, + unsigned long timeout); bool gk20a_fence_is_expired(struct gk20a_fence *f); int gk20a_fence_install_fd(struct gk20a_fence *f); -- cgit v1.2.2