projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a65b3
)
drm: debugfs: Silence warning from cast
author
Steven Price
<steven.price@arm.com>
Thu, 20 Jul 2023 10:51:27 +0000
(11:51 +0100)
committer
Danilo Krummrich
<dakr@redhat.com>
Thu, 20 Jul 2023 21:43:14 +0000
(23:43 +0200)
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:
4f66feeab173
("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
drivers/gpu/drm/drm_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_debugfs.c
b/drivers/gpu/drm/drm_debugfs.c
index
c90dbcf
..
a3a4882
100644
(file)
--- a/
drivers/gpu/drm/drm_debugfs.c
+++ b/
drivers/gpu/drm/drm_debugfs.c
@@
-209,7
+209,7
@@
int drm_debugfs_gpuva_info(struct seq_file *m,
seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n",
va->va.addr, va->va.range, va->va.addr + va->va.range,
- (u64)va->gem.obj, va->gem.offset);
+ (u64)
(uintptr_t)
va->gem.obj, va->gem.offset);
}
return 0;