Skip to content

Commit 74a65b3

Browse files
Steven Pricedakr
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 <[email protected]> Signed-off-by: Steven Price <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c942e93 commit 74a65b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)