summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/bnxt_re/ib_verbs.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-09-06 17:57:17 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-09-13 21:55:55 +0200
commit2ac5a6d3a917755919d97c89f8aa74e4ed958557 (patch)
treed90366ab71e24835c610b0effdd3862f29e0c5db /drivers/infiniband/hw/bnxt_re/ib_verbs.c
parentRDMA/odp: Add missing cast for 32 bit (diff)
downloadlinux-2ac5a6d3a917755919d97c89f8aa74e4ed958557.tar.xz
linux-2ac5a6d3a917755919d97c89f8aa74e4ed958557.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.c')
0 files changed, 0 insertions, 0 deletions