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/gk20a/clk_gk20a.c | |
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/gk20a/clk_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.c b/drivers/gpu/nvgpu/gk20a/clk_gk20a.c index e3a486b6..2c4f1bf4 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.c | |||
@@ -67,7 +67,7 @@ static int clk_config_pll(struct clk_gk20a *clk, struct pll *pll, | |||
67 | u32 target_vco_f, vco_f; | 67 | u32 target_vco_f, vco_f; |
68 | u32 ref_clk_f, target_clk_f, u_f; | 68 | u32 ref_clk_f, target_clk_f, u_f; |
69 | u32 delta, lwv, best_delta = ~0; | 69 | u32 delta, lwv, best_delta = ~0; |
70 | int pl; | 70 | unsigned int pl; |
71 | 71 | ||
72 | BUG_ON(target_freq == NULL); | 72 | BUG_ON(target_freq == NULL); |
73 | 73 | ||
@@ -160,7 +160,7 @@ static int clk_config_pll(struct clk_gk20a *clk, struct pll *pll, | |||
160 | } | 160 | } |
161 | 161 | ||
162 | found_match: | 162 | found_match: |
163 | BUG_ON(best_delta == ~0); | 163 | BUG_ON(best_delta == ~0U); |
164 | 164 | ||
165 | if (best_fit && best_delta != 0) | 165 | if (best_fit && best_delta != 0) |
166 | gk20a_dbg_clk("no best match for target @ %dMHz on gpc_pll", | 166 | gk20a_dbg_clk("no best match for target @ %dMHz on gpc_pll", |