Skip to content

Commit 85b7d20

Browse files
committed
drm/nouveau: nvkm: vmm: silence warning from cast
Cast the integer to a pointer-sized type first to keep the compiler happy. Fixes: 6b252cf ("drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm") Reported-by: kernel test robot <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 65c54fe commit 85b7d20

File tree

1 file changed

+3
-2
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/mmu

1 file changed

+3
-2
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ nvkm_uvmm_mthd_raw_map(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
399399
.no_comp = true,
400400
};
401401
struct nvkm_memory *memory;
402+
void *argv = (void *)(uintptr_t)args->argv;
403+
unsigned int argc = args->argc;
402404
u64 handle = args->memory;
403405
u8 refd;
404406
int ret;
@@ -418,8 +420,7 @@ nvkm_uvmm_mthd_raw_map(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
418420
return PTR_ERR(memory);
419421
}
420422

421-
ret = nvkm_memory_map(memory, args->offset, vmm, &vma,
422-
(void *)args->argv, args->argc);
423+
ret = nvkm_memory_map(memory, args->offset, vmm, &vma, argv, argc);
423424

424425
nvkm_memory_unref(&vma.memory);
425426
nvkm_memory_unref(&memory);

0 commit comments

Comments
 (0)