linux/drivers/infiniband/hw
Arnd Bergmann 2ac5a6d3a9 RDMA/usnic: Avoid overly large buffers on stack
It's never a good idea to put a 1000-byte buffer on the kernel stack. The
compiler warns about this instance when usnic_ib_log_vf() gets inlined
into usnic_ib_pci_probe():

drivers/infiniband/hw/usnic/usnic_ib_main.c:543:12: error: stack frame size of 1044 bytes in function 'usnic_ib_pci_probe' [-Werror,-Wframe-larger-than=]

As this is only called for debugging purposes in the setup path, it's
trivial to convert to a dynamic allocation.

Link: https://lore.kernel.org/r/20190906155730.2750200-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-09-13 16:55:55 -03:00
..
bnxt_re RDMA: Introduce ib_port_phys_state enum 2019-08-12 10:18:52 -04:00
cxgb3 RDMA/{cxgb3, cxgb4, i40iw}: Remove common code 2019-08-12 10:19:43 -04:00
cxgb4 RDMA/{cxgb3, cxgb4, i40iw}: Remove common code 2019-08-12 10:19:43 -04:00
efa RDMA/efa: Use existing FIELD_SIZEOF macro 2019-08-27 13:01:15 -03:00
hfi1 Merge branch 'odp_fixes' into rdma.git for-next 2019-08-21 14:10:36 -03:00
hns RDMA/hns: Use devm_platform_ioremap_resource() to simplify code 2019-09-13 16:55:55 -03:00
i40iw RDMA/{cxgb3, cxgb4, i40iw}: Remove common code 2019-08-12 10:19:43 -04:00
mlx4 RDMA: Introduce ib_port_phys_state enum 2019-08-12 10:18:52 -04:00
mlx5 Merge branch 'mlx5-odp-dc' into rdma.git for-next 2019-08-28 11:25:37 -03:00
mthca IB: Remove unneeded memset 2019-07-03 14:26:49 -03:00
ocrdma RDMA: Introduce ib_port_phys_state enum 2019-08-12 10:18:52 -04:00
qedr RDMA: Introduce ib_port_phys_state enum 2019-08-12 10:18:52 -04:00
qib RDMA/qib: Unneeded variable ret 2019-07-25 13:53:45 -03:00
usnic RDMA/usnic: Avoid overly large buffers on stack 2019-09-13 16:55:55 -03:00
vmw_pvrdma Linux 5.2-rc6 2019-06-28 21:18:23 -03:00
Makefile rdma: Remove nes 2019-06-13 09:59:49 -04:00