diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c index bc769a2b..358b657f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c | |||
@@ -454,7 +454,7 @@ static struct gk20a_page_alloc *__do_gk20a_alloc_pages( | |||
454 | 454 | ||
455 | while (pages) { | 455 | while (pages) { |
456 | u64 chunk_addr = 0; | 456 | u64 chunk_addr = 0; |
457 | u64 chunk_pages = 1 << __fls(pages); | 457 | u64 chunk_pages = (u64)1 << __fls(pages); |
458 | u64 chunk_len = chunk_pages << a->page_shift; | 458 | u64 chunk_len = chunk_pages << a->page_shift; |
459 | 459 | ||
460 | /* | 460 | /* |