Message ID | 1387298917-7365-2-git-send-email-umalhi@cisco.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
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); }
Compiler spits out stack frame size exceeds warnings if CONFIG_FRAME_WARN=1024 on usNIC code. This patch provides a fix for the warnings. 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(-)