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/vgpu/dbg_vgpu.c | |
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/vgpu/dbg_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/dbg_vgpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c b/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c index c312c419..609b497a 100644 --- a/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c | |||
@@ -30,9 +30,9 @@ static int vgpu_exec_regops(struct dbg_session_gk20a *dbg_s, | |||
30 | struct tegra_vgpu_cmd_msg msg; | 30 | struct tegra_vgpu_cmd_msg msg; |
31 | struct tegra_vgpu_reg_ops_params *p = &msg.params.reg_ops; | 31 | struct tegra_vgpu_reg_ops_params *p = &msg.params.reg_ops; |
32 | void *oob; | 32 | void *oob; |
33 | size_t oob_size; | 33 | size_t oob_size, ops_size; |
34 | void *handle = NULL; | 34 | void *handle = NULL; |
35 | int ops_size, err = 0; | 35 | int err = 0; |
36 | 36 | ||
37 | gk20a_dbg_fn(""); | 37 | gk20a_dbg_fn(""); |
38 | BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); | 38 | BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); |