From d8da1d64381bb1265e194d81cb02673efa6ca54c Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 9 Nov 2016 15:54:27 -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: Ib7026728ef0e8c3c9e68956fc9794ec3a786a8a2 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1252069 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp106/clk_gp106.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp106') diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c index 1dd3922a..39c308a3 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c @@ -195,7 +195,7 @@ static int clk_gp106_debugfs_init(struct gk20a *g) { struct dentry *gpu_root = platform->debugfs; struct dentry *clocks_root; struct dentry *d; - int i; + unsigned int i; if (NULL == (clocks_root = debugfs_create_dir("clocks", gpu_root))) return -ENOMEM; -- cgit v1.2.2