Re: [PATCH net-next] [net-next] mlx4: avoid large stack usage in mlx4_init_hca()

2019-07-24 Thread David Miller
From: Arnd Bergmann Date: Mon, 22 Jul 2019 17:01:55 +0200 > The mlx4_dev_cap and mlx4_init_hca_param are really too large > to be put on the kernel stack, as shown by this clang warning: > > drivers/net/ethernet/mellanox/mlx4/main.c:3304:12: error: stack frame size of > 1088 bytes in function

Re: [PATCH net-next] [net-next] mlx4: avoid large stack usage in mlx4_init_hca()

2019-07-23 Thread Saeed Mahameed
On Mon, 2019-07-22 at 17:01 +0200, Arnd Bergmann wrote: > The mlx4_dev_cap and mlx4_init_hca_param are really too large > to be put on the kernel stack, as shown by this clang warning: > > drivers/net/ethernet/mellanox/mlx4/main.c:3304:12: error: stack frame > size of 1088 bytes in function

[PATCH net-next] [net-next] mlx4: avoid large stack usage in mlx4_init_hca()

2019-07-22 Thread Arnd Bergmann
The mlx4_dev_cap and mlx4_init_hca_param are really too large to be put on the kernel stack, as shown by this clang warning: drivers/net/ethernet/mellanox/mlx4/main.c:3304:12: error: stack frame size of 1088 bytes in function 'mlx4_load_one' [-Werror,-Wframe-larger-than=] With gcc, the problem