projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65c54fe
)
drm/nouveau: nvkm: vmm: silence warning from cast
author
Danilo Krummrich
<dakr@redhat.com>
Mon, 7 Aug 2023 16:32:23 +0000
(18:32 +0200)
committer
Danilo Krummrich
<dakr@redhat.com>
Tue, 8 Aug 2023 02:47:14 +0000
(
04:47
+0200)
Cast the integer to a pointer-sized type first to keep the compiler
happy.
Fixes: 6b252cf42281 ("drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230807163238.2091-3-dakr@redhat.com
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
index 38b7ced934b1277c0bd09db6d8f02e4cb3bacfcf..8e459d88ff8f89426e163e43069a1a0698b9c44f 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
@@
-399,6
+399,8
@@
nvkm_uvmm_mthd_raw_map(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
.no_comp = true,
};
struct nvkm_memory *memory;
+ void *argv = (void *)(uintptr_t)args->argv;
+ unsigned int argc = args->argc;
u64 handle = args->memory;
u8 refd;
int ret;
@@
-418,8
+420,7
@@
nvkm_uvmm_mthd_raw_map(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
return PTR_ERR(memory);
}
- ret = nvkm_memory_map(memory, args->offset, vmm, &vma,
- (void *)args->argv, args->argc);
+ ret = nvkm_memory_map(memory, args->offset, vmm, &vma, argv, argc);
nvkm_memory_unref(&vma.memory);
nvkm_memory_unref(&memory);