Re: [PATCH] dma-buf: use struct_size macro

2020-10-08 Thread Gustavo A. R. Silva
On Thu, Oct 08, 2020 at 10:40:10AM +0200, Christian König wrote: > Am 08.10.20 um 10:17 schrieb Daniel Vetter: > > On Thu, Oct 8, 2020 at 10:10 AM Christian König > > wrote: > > > Instead of manually calculating the structure size. > > > > > > Signed-off-by: Christian König > > Reviewed-by: Dani

Re: [PATCH] dma-buf: use struct_size macro

2020-10-08 Thread Christian König
Am 08.10.20 um 10:17 schrieb Daniel Vetter: On Thu, Oct 8, 2020 at 10:10 AM Christian König wrote: Instead of manually calculating the structure size. Signed-off-by: Christian König Reviewed-by: Daniel Vetter Thanks, could anybody (not me) come up with a cocci script for this? I'm pretty

Re: [PATCH] dma-buf: use struct_size macro

2020-10-08 Thread Daniel Vetter
On Thu, Oct 8, 2020 at 10:10 AM Christian König wrote: > > Instead of manually calculating the structure size. > > Signed-off-by: Christian König Reviewed-by: Daniel Vetter > --- > drivers/dma-buf/dma-resv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma-

[PATCH] dma-buf: use struct_size macro

2020-10-08 Thread Christian König
Instead of manually calculating the structure size. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-resv.c b/drivers/dma-buf/dma-resv.c index 1c8f2581cb09..bb5a42b10c29 100644 --- a/drivers/dma-