summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-11-09 18:54:27 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:51 -0500
commitd8da1d64381bb1265e194d81cb02673efa6ca54c (patch)
treefb69a0716c36659fc48be6ed0ce9ccc7c3bf96f3 /drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
parent6579c1ec6fbe9d8bbd0c5da5dfaa51c02402527b (diff)
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 <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1252069 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
index 3e64d435..31c79aff 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
@@ -124,7 +124,7 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
124static void gp10b_ltc_isr(struct gk20a *g) 124static void gp10b_ltc_isr(struct gk20a *g)
125{ 125{
126 u32 mc_intr, ltc_intr; 126 u32 mc_intr, ltc_intr;
127 int ltc, slice; 127 unsigned int ltc, slice;
128 u32 ltc_stride = nvgpu_get_litter_value(g, GPU_LIT_LTC_STRIDE); 128 u32 ltc_stride = nvgpu_get_litter_value(g, GPU_LIT_LTC_STRIDE);
129 u32 lts_stride = nvgpu_get_litter_value(g, GPU_LIT_LTS_STRIDE); 129 u32 lts_stride = nvgpu_get_litter_value(g, GPU_LIT_LTS_STRIDE);
130 130