summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-11-09 18:53:16 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-11-17 00:35:36 -0500
commitd29afd2c9e990799b470bb95a97935cf5b5020db (patch)
tree48f14dffe90956e9b42b02a87b95fd7a1dfeef3e /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parent5494e846c78dd0da74635905ead3abe45502375f (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/gk20a/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 832e03e9..66052950 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -188,7 +188,7 @@ struct channel_gk20a {
188 bool has_timedout; 188 bool has_timedout;
189 u32 timeout_ms_max; 189 u32 timeout_ms_max;
190 bool timeout_debug_dump; 190 bool timeout_debug_dump;
191 u32 timeslice_us; 191 unsigned int timeslice_us;
192 192
193 struct dma_buf *error_notifier_ref; 193 struct dma_buf *error_notifier_ref;
194 struct nvgpu_notification *error_notifier; 194 struct nvgpu_notification *error_notifier;
@@ -309,11 +309,11 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
309 int timeslice_period, 309 int timeslice_period,
310 int *__timeslice_timeout, int *__timeslice_scale); 310 int *__timeslice_timeout, int *__timeslice_scale);
311int gk20a_channel_set_priority(struct channel_gk20a *ch, u32 priority); 311int gk20a_channel_set_priority(struct channel_gk20a *ch, u32 priority);
312int gk20a_channel_set_timeslice(struct channel_gk20a *ch, u32 timeslice); 312int gk20a_channel_set_timeslice(struct channel_gk20a *ch, unsigned int timeslice);
313int gk20a_channel_set_runlist_interleave(struct channel_gk20a *ch, 313int gk20a_channel_set_runlist_interleave(struct channel_gk20a *ch,
314 u32 level); 314 u32 level);
315void gk20a_channel_event_id_post_event(struct channel_gk20a *ch, 315void gk20a_channel_event_id_post_event(struct channel_gk20a *ch,
316 int event_id); 316 u32 event_id);
317 317
318void gk20a_channel_setup_ramfc_for_privileged_channel(struct channel_gk20a *c); 318void gk20a_channel_setup_ramfc_for_privileged_channel(struct channel_gk20a *c);
319 319