Skip to content

Commit 34d7edc

Browse files
stevenprice-armdakr
authored andcommitted
drm: debugfs: Silence warning from cast
Casting a pointer to an integer of a different size generates a warning from the compiler. First cast the pointer to a pointer-sized type to keep the compiler happy. Fixes: 4f66fee ("drm: debugfs: provide infrastructure to dump a DRM GPU VA space") Reviewed-by: Danilo Krummrich <dakr@redhat.com> Signed-off-by: Steven Price <steven.price@arm.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/010b58cd-1225-02f7-33f0-c678e5cd349d@arm.com
1 parent 74a65b3 commit 34d7edc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/drm_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ int drm_debugfs_gpuva_info(struct seq_file *m,
209209

210210
seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n",
211211
va->va.addr, va->va.range, va->va.addr + va->va.range,
212-
(u64)va->gem.obj, va->gem.offset);
212+
(u64)(uintptr_t)va->gem.obj, va->gem.offset);
213213
}
214214

215215
return 0;

0 commit comments

Comments
 (0)