From d29afd2c9e990799b470bb95a97935cf5b5020db Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 9 Nov 2016 15:53:16 -0800 Subject: 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 Reviewed-on: http://git-master/r/1252068 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') 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 { bool has_timedout; u32 timeout_ms_max; bool timeout_debug_dump; - u32 timeslice_us; + unsigned int timeslice_us; struct dma_buf *error_notifier_ref; struct nvgpu_notification *error_notifier; @@ -309,11 +309,11 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g, int timeslice_period, int *__timeslice_timeout, int *__timeslice_scale); int gk20a_channel_set_priority(struct channel_gk20a *ch, u32 priority); -int gk20a_channel_set_timeslice(struct channel_gk20a *ch, u32 timeslice); +int gk20a_channel_set_timeslice(struct channel_gk20a *ch, unsigned int timeslice); int gk20a_channel_set_runlist_interleave(struct channel_gk20a *ch, u32 level); void gk20a_channel_event_id_post_event(struct channel_gk20a *ch, - int event_id); + u32 event_id); void gk20a_channel_setup_ramfc_for_privileged_channel(struct channel_gk20a *c); -- cgit v1.2.2