From d29afd2c9e990799b470bb95a97935cf5b5020db Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 9 Nov 2016 15:53:16 -0800 Subject: gpu: nvgpu: Fix signed comparison bugs Fix small problems related to signed versus unsigned comparisons throughout the driver. Bump up the warning level to prevent such problems from occuring in future. Change-Id: I8ff5efb419f664e8a2aedadd6515ae4d18502ae0 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1252068 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/uapi') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index e4f94c16..b1c602db 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -928,7 +928,7 @@ struct nvgpu_dbg_gpu_suspend_resume_contexts_args { */ #define NVGPU_IOCTL_MAGIC 'H' -#define NVGPU_NO_TIMEOUT (-1) +#define NVGPU_NO_TIMEOUT ((u32)~0) #define NVGPU_PRIORITY_LOW 50 #define NVGPU_PRIORITY_MEDIUM 100 #define NVGPU_PRIORITY_HIGH 150 -- cgit v1.2.2