diff mbox

[v1,for-next,01/15] IB/usnic: Fix stack frame size exceed warnings

Message ID 1389307663-11296-2-git-send-email-umalhi@cisco.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Upinder Malhi (umalhi) Jan. 9, 2014, 10:47 p.m. UTC
Compiler spits out *stack frame size exceeds* warnings on usNIC code
when CONFIG_FRAME_WARN=1024.  Keep stack frame size under 1024
everywhere in usNIC code.

Signed-off-by: Upinder Malhi <umalhi@cisco.com>
---
 drivers/infiniband/hw/usnic/usnic_ib_main.c   | 2 +-
 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniband/hw/usnic/usnic_ib_main.c
index 2bbfa09..1771eec 100644
--- a/drivers/infiniband/hw/usnic/usnic_ib_main.c
+++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c
@@ -73,7 +73,7 @@  static void usnic_ib_dump_vf(struct usnic_ib_vf *vf, char *buf, int buf_sz)
 
 void usnic_ib_log_vf(struct usnic_ib_vf *vf)
 {
-	char buf[1024];
+	char buf[1000];
 	usnic_ib_dump_vf(vf, buf, sizeof(buf));
 	usnic_dbg(buf);
 }
diff --git a/drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c b/drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
index 24da928..5ba8678 100644
--- a/drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
+++ b/drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
@@ -430,7 +430,7 @@  static void qp_grp_and_vf_unbind(struct usnic_ib_qp_grp *qp_grp)
 static void log_spec(const struct usnic_vnic_res_spec
 					const *res_spec)
 {
-	char buf[1024];
+	char buf[512];
 	usnic_vnic_spec_dump(buf, sizeof(buf), res_spec);
 	usnic_dbg(buf);
 }