Message ID | 20190819195740.27608-1-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dma-buf: Use %zu for printing sizeof | expand |
On Mon, Aug 19, 2019 at 08:57:40PM +0100, Chris Wilson wrote: > Use the %zu format specifier for a size_t returned by sizeo. > > Reported-by: kbuild-all@01.org > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> > --- > drivers/dma-buf/st-dma-fence.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma-buf/st-dma-fence.c b/drivers/dma-buf/st-dma-fence.c > index 3d69405952aa..6fbae6bf6576 100644 > --- 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)=%lu\n", sizeof(struct dma_fence)); > + pr_info("sizeof(dma_fence)=%zu\n", sizeof(struct dma_fence)); > > slab_fences = KMEM_CACHE(mock_fence, > SLAB_TYPESAFE_BY_RCU | > -- > 2.23.0.rc1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff --git a/drivers/dma-buf/st-dma-fence.c b/drivers/dma-buf/st-dma-fence.c index 3d69405952aa..6fbae6bf6576 100644 --- 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)=%lu\n", sizeof(struct dma_fence)); + pr_info("sizeof(dma_fence)=%zu\n", sizeof(struct dma_fence)); slab_fences = KMEM_CACHE(mock_fence, SLAB_TYPESAFE_BY_RCU |
Use the %zu format specifier for a size_t returned by sizeo. Reported-by: kbuild-all@01.org Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> --- drivers/dma-buf/st-dma-fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)