summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h b/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
index d96037ce..c73d3c05 100644
--- a/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h
@@ -222,7 +222,7 @@ static inline bool gk20a_semaphore_is_released(struct gk20a_semaphore *s)
222 * the value of the semaphore then the semaphore has been signaled 222 * the value of the semaphore then the semaphore has been signaled
223 * (a.k.a. released). 223 * (a.k.a. released).
224 */ 224 */
225 return sema_val >= atomic_read(&s->value); 225 return (int)sema_val >= atomic_read(&s->value);
226} 226}
227 227
228static inline bool gk20a_semaphore_is_acquired(struct gk20a_semaphore *s) 228static inline bool gk20a_semaphore_is_acquired(struct gk20a_semaphore *s)
@@ -240,12 +240,12 @@ static inline u32 gk20a_semaphore_read(struct gk20a_semaphore *s)
240 240
241static inline u32 gk20a_semaphore_get_value(struct gk20a_semaphore *s) 241static inline u32 gk20a_semaphore_get_value(struct gk20a_semaphore *s)
242{ 242{
243 return atomic_read(&s->value); 243 return (u32)atomic_read(&s->value);
244} 244}
245 245
246static inline u32 gk20a_semaphore_next_value(struct gk20a_semaphore *s) 246static inline u32 gk20a_semaphore_next_value(struct gk20a_semaphore *s)
247{ 247{
248 return atomic_read(&s->hw_sema->next_value); 248 return (u32)atomic_read(&s->hw_sema->next_value);
249} 249}
250 250
251/* 251/*