drm: debugfs: Silence warning from cast
authorSteven Price <steven.price@arm.com>
Thu, 20 Jul 2023 10:51:27 +0000 (11:51 +0100)
committerDanilo Krummrich <dakr@redhat.com>
Thu, 20 Jul 2023 21:43:14 +0000 (23:43 +0200)
commit34d7edcf22140d028cb1d9b3d81e1ca9b00a4253
tree7794efdb9081e7c10cf3da49014ccb95a74d8d0b
parent74a65b3e789a2052dd3fed5119954a48c1d45903
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: 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