mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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: e6303f323b ("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
This commit is contained in:
parent
c942e935ff
commit
74a65b3e78
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user