Re: [PATCH][next] net: thunderx: Use struct_size() helper in kmalloc()

2020-10-10 Thread Jakub Kicinski
On Thu, 8 Oct 2020 09:28:06 -0500 Gustavo A. R. Silva wrote: > Make use of the new struct_size() helper instead of the offsetof() idiom. > > Signed-off-by: Gustavo A. R. Silva Applied, thanks!

[PATCH][next] net: thunderx: Use struct_size() helper in kmalloc()

2020-10-08 Thread Gustavo A. R. Silva
Make use of the new struct_size() helper instead of the offsetof() idiom. Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/ne