Skip to content

Commit 74a65b3

Browse files
stevenprice-armdakr
authored andcommitted
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: e6303f3 ("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
1 parent c942e93 commit 74a65b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/drm_gpuva_mgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ drm_gpuva_check_overflow(u64 addr, u64 range)
619619
u64 end;
620620

621621
return WARN(check_add_overflow(addr, range, &end),
622-
"GPUVA address limited to %lu bytes.\n", sizeof(end));
622+
"GPUVA address limited to %zu bytes.\n", sizeof(end));
623623
}
624624

625625
static bool

0 commit comments

Comments
 (0)