IB/bnxt_re: Fix frame stack compilation warning
authorLeon Romanovsky <leon@kernel.org>
Tue, 19 Sep 2017 10:22:13 +0000 (13:22 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 22 Sep 2017 17:19:13 +0000 (13:19 -0400)
commite13547bc181ae6c279adf0df054717787f24ee89
treed8f27a30c96df30f0b2929516058e236e7632af1
parentcbafad87e1507044c7d442087d41d5e3d432cc4e
IB/bnxt_re: Fix frame stack compilation warning

Reduce stack size by dynamically allocating memory instead
of declaring large struct on the stack:

drivers/infiniband/hw/bnxt_re/ib_verbs.c: In function ‘bnxt_re_query_qp’:
drivers/infiniband/hw/bnxt_re/ib_verbs.c:1600:1: warning: the frame size of 1216 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^

Cc: Selvin Xavier <selvin.xavier@broadcom.com>
Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c