summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index bfd183fb..235bc027 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -211,10 +211,10 @@ static void gk20a_ce_delete_gpu_context(struct gk20a_gpu_ctx *ce_ctx)
211 kfree(ce_ctx); 211 kfree(ce_ctx);
212} 212}
213 213
214static inline int gk20a_ce_get_method_size(int request_operation) 214static inline unsigned int gk20a_ce_get_method_size(int request_operation)
215{ 215{
216 /* failure size */ 216 /* failure size */
217 int methodsize = ~0; 217 unsigned int methodsize = UINT_MAX;
218 218
219 if (request_operation & NVGPU_CE_PHYS_MODE_TRANSFER) 219 if (request_operation & NVGPU_CE_PHYS_MODE_TRANSFER)
220 methodsize = 10 * 2 * sizeof(u32); 220 methodsize = 10 * 2 * sizeof(u32);
@@ -518,7 +518,7 @@ u32 gk20a_ce_create_context_with_cb(struct device *dev,
518 ce_ctx->gpu_ctx_state = NVGPU_CE_GPU_CTX_ALLOCATED; 518 ce_ctx->gpu_ctx_state = NVGPU_CE_GPU_CTX_ALLOCATED;
519 519
520end: 520end:
521 if (ctx_id == ~0) { 521 if (ctx_id == (u32)~0) {
522 mutex_lock(&ce_app->app_mutex); 522 mutex_lock(&ce_app->app_mutex);
523 gk20a_ce_delete_gpu_context(ce_ctx); 523 gk20a_ce_delete_gpu_context(ce_ctx);
524 mutex_unlock(&ce_app->app_mutex); 524 mutex_unlock(&ce_app->app_mutex);