diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-11-09 18:53:16 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-11-17 00:35:36 -0500 |
commit | d29afd2c9e990799b470bb95a97935cf5b5020db (patch) | |
tree | 48f14dffe90956e9b42b02a87b95fd7a1dfeef3e /drivers/gpu/nvgpu/gm206 | |
parent | 5494e846c78dd0da74635905ead3abe45502375f (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: I8ff5efb419f664e8a2aedadd6515ae4d18502ae0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1252068
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/acr_gm206.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm206/acr_gm206.c b/drivers/gpu/nvgpu/gm206/acr_gm206.c index 872ff601..a0e60833 100644 --- a/drivers/gpu/nvgpu/gm206/acr_gm206.c +++ b/drivers/gpu/nvgpu/gm206/acr_gm206.c | |||
@@ -212,7 +212,8 @@ static int gm206_bootstrap_hs_flcn(struct gk20a *g) | |||
212 | { | 212 | { |
213 | struct mm_gk20a *mm = &g->mm; | 213 | struct mm_gk20a *mm = &g->mm; |
214 | struct vm_gk20a *vm = &mm->pmu.vm; | 214 | struct vm_gk20a *vm = &mm->pmu.vm; |
215 | int i, err = 0; | 215 | unsigned int i; |
216 | int err = 0; | ||
216 | u64 *acr_dmem; | 217 | u64 *acr_dmem; |
217 | u32 img_size_in_bytes = 0; | 218 | u32 img_size_in_bytes = 0; |
218 | u32 status; | 219 | u32 status; |
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index 033c84d6..1f3de0b7 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c | |||
@@ -830,7 +830,7 @@ static int gm206_bios_preos(struct gk20a *g) | |||
830 | 830 | ||
831 | static int gm206_bios_init(struct gk20a *g) | 831 | static int gm206_bios_init(struct gk20a *g) |
832 | { | 832 | { |
833 | int i; | 833 | unsigned int i; |
834 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | 834 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); |
835 | struct dentry *d; | 835 | struct dentry *d; |
836 | const struct firmware *bios_fw; | 836 | const struct firmware *bios_fw; |