diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-11-09 18:53:16 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-08 13:11:28 -0500 |
commit | 0859cf9539841ed8e6af09472f4253e497e4248d (patch) | |
tree | fe0a3d509a1ef4c8d62c2838f2d06661a65c1597 /drivers/gpu/nvgpu/gm20b | |
parent | dd075c39bb94f195ca70683f5a767093e2901900 (diff) |
gpu: nvgpu: Enable signed versus non-signed errors
Fix a few trivial signed versus unsigned problems, and enable
compilation flag to treat them as errors.
Change-Id: I68cc327885ef1efb12db7f347a2699a65415f889
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1265291
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index 5b3df718..25503ea1 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -221,7 +221,7 @@ static int clk_config_pll(struct clk_gk20a *clk, struct pll *pll, | |||
221 | } | 221 | } |
222 | 222 | ||
223 | found_match: | 223 | found_match: |
224 | BUG_ON(best_delta == ~0); | 224 | BUG_ON(best_delta == ~0U); |
225 | 225 | ||
226 | if (best_fit && best_delta != 0) | 226 | if (best_fit && best_delta != 0) |
227 | gk20a_dbg_clk("no best match for target @ %dMHz on gpc_pll", | 227 | gk20a_dbg_clk("no best match for target @ %dMHz on gpc_pll", |
@@ -363,7 +363,7 @@ static void clk_config_dvfs_ndiv(int mv, u32 n_eff, struct na_dvfs *d) | |||
363 | det_delta = det_delta * d->dfs_coeff; | 363 | det_delta = det_delta * d->dfs_coeff; |
364 | 364 | ||
365 | n = (int)(n_eff << DFS_DET_RANGE) - det_delta; | 365 | n = (int)(n_eff << DFS_DET_RANGE) - det_delta; |
366 | BUG_ON((n < 0) || (n > (p->max_N << DFS_DET_RANGE))); | 366 | BUG_ON((n < 0) || (n > (int)(p->max_N << DFS_DET_RANGE))); |
367 | d->n_int = ((u32)n) >> DFS_DET_RANGE; | 367 | d->n_int = ((u32)n) >> DFS_DET_RANGE; |
368 | 368 | ||
369 | rem = ((u32)n) & ((1 << DFS_DET_RANGE) - 1); | 369 | rem = ((u32)n) & ((1 << DFS_DET_RANGE) - 1); |