diff options
author | Steven Price <steven.price@arm.com> | 2023-07-20 13:44:02 +0300 |
---|---|---|
committer | Danilo Krummrich <dakr@redhat.com> | 2023-07-21 00:42:45 +0300 |
commit | 74a65b3e789a2052dd3fed5119954a48c1d45903 (patch) | |
tree | efe38559d1a207728f144effc649ba605e5d8788 /drivers | |
parent | c942e935ff3fa56f6f140c70e04089ee7c389e46 (diff) | |
download | linux-74a65b3e789a2052dd3fed5119954a48c1d45903.tar.xz |
drm: manager: Fix printk format for size_t
sizeof() returns a size_t which may be different to an unsigned long.
Use the correct format specifier of '%zu' to prevent compiler warnings.
Fixes: e6303f323b1a ("drm: manager to keep track of GPUs VA mappings")
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/2bf64010-c40a-8b84-144c-5387412b579e@arm.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_gpuva_mgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_gpuva_mgr.c b/drivers/gpu/drm/drm_gpuva_mgr.c index 0b80177592a6..f86bfad74ff8 100644 --- a/drivers/gpu/drm/drm_gpuva_mgr.c +++ b/drivers/gpu/drm/drm_gpuva_mgr.c @@ -619,7 +619,7 @@ drm_gpuva_check_overflow(u64 addr, u64 range) u64 end; return WARN(check_add_overflow(addr, range, &end), - "GPUVA address limited to %lu bytes.\n", sizeof(end)); + "GPUVA address limited to %zu bytes.\n", sizeof(end)); } static bool |