summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2017-12-20 04:24:29 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-09 19:52:14 -0500
commit84d02ed7b1f441dab2986c1e7e6c888ee523e046 (patch)
treeabdbe12a2c0d8bbca550f93c54ac6865d398c85b /drivers
parent2ae16008cdfd778bc981cea4d5a90fb988f0850b (diff)
gpu: nvgpu: correct function arguments to fix QNX compilation
The patch changes the function argument from 'int' to 'unsigned int' to fix the QNX compilation failures. Change-Id: Iaee7850d8310bea693996ac618b95252ca5d1b35 Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1626397 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c8
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 3fe119d7..16d4711f 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -126,12 +126,12 @@ int channel_gk20a_commit_va(struct channel_gk20a *c)
126} 126}
127 127
128int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g, 128int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
129 int timeslice_period, 129 unsigned int timeslice_period,
130 int *__timeslice_timeout, int *__timeslice_scale) 130 unsigned int *__timeslice_timeout, unsigned int *__timeslice_scale)
131{ 131{
132 int value = scale_ptimer(timeslice_period, 132 unsigned int value = scale_ptimer(timeslice_period,
133 ptimer_scalingfactor10x(g->ptimer_src_freq)); 133 ptimer_scalingfactor10x(g->ptimer_src_freq));
134 int shift = 0; 134 unsigned int shift = 0;
135 135
136 /* value field is 8 bits long */ 136 /* value field is 8 bits long */
137 while (value >= 1 << 8) { 137 while (value >= 1 << 8) {
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 596b85f3..c13b1c58 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -353,8 +353,8 @@ bool channel_gk20a_joblist_is_empty(struct channel_gk20a *c);
353 353
354int channel_gk20a_update_runlist(struct channel_gk20a *c, bool add); 354int channel_gk20a_update_runlist(struct channel_gk20a *c, bool add);
355int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g, 355int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
356 int timeslice_period, 356 unsigned int timeslice_period,
357 int *__timeslice_timeout, int *__timeslice_scale); 357 unsigned int *__timeslice_timeout, unsigned int *__timeslice_scale);
358 358
359int channel_gk20a_alloc_job(struct channel_gk20a *c, 359int channel_gk20a_alloc_job(struct channel_gk20a *c,
360 struct channel_gk20a_job **job_out); 360 struct channel_gk20a_job **job_out);