projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01b45d3
)
dma-buf: Use %zu for printing sizeof
author
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 19 Aug 2019 19:57:40 +0000
(20:57 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 09:13:42 +0000
(10:13 +0100)
Use the %zu format specifier for a size_t returned by sizeof.
Reported-by: kbuild-all@01.org
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190819195740.27608-1-chris@chris-wilson.co.uk
drivers/dma-buf/st-dma-fence.c
patch
|
blob
|
history
diff --git
a/drivers/dma-buf/st-dma-fence.c
b/drivers/dma-buf/st-dma-fence.c
index
3d69405
..
6fbae6b
100644
(file)
--- a/
drivers/dma-buf/st-dma-fence.c
+++ b/
drivers/dma-buf/st-dma-fence.c
@@
-557,7
+557,7
@@
int dma_fence(void)
};
int ret;
- pr_info("sizeof(dma_fence)=%
l
u\n", sizeof(struct dma_fence));
+ pr_info("sizeof(dma_fence)=%
z
u\n", sizeof(struct dma_fence));
slab_fences = KMEM_CACHE(mock_fence,
SLAB_TYPESAFE_BY_RCU |