From patchwork Tue Dec 17 16:48:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Upinder Malhi (umalhi)" X-Patchwork-Id: 3362901 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A40B19F344 for ; Tue, 17 Dec 2013 16:58:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8BF8D20394 for ; Tue, 17 Dec 2013 16:58:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 596652031C for ; Tue, 17 Dec 2013 16:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754939Ab3LQQ6g (ORCPT ); Tue, 17 Dec 2013 11:58:36 -0500 Received: from mtv-iport-3.cisco.com ([173.36.130.14]:30666 "EHLO mtv-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754937Ab3LQQ6f (ORCPT ); Tue, 17 Dec 2013 11:58:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1390; q=dns/txt; s=iport; t=1387299515; x=1388509115; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=+V3gozJ8FnKka+TmpU4YCPnO8JwqMpLN7RIy0adhjxA=; b=ZwBffP598ty5ZdY1bwGV1jMl7NG442X8s7xX4T4MklGjXdO6IOxbIO8q aensOl6wwIaFp+EatQnhk94e2sVyTuzhdbRxuo7a0+ftgK4/4Y94tE9Mp Q73sYCRXPftJUAkdbDXWo1VmFJ2XXOC8EXuhbSBFQtmEiNKVbH8/OpcOt I=; X-IronPort-AV: E=Sophos;i="4.95,502,1384300800"; d="scan'208";a="98264211" Received: from mtv-core-4.cisco.com ([171.68.58.9]) by mtv-iport-3.cisco.com with ESMTP; 17 Dec 2013 16:49:04 +0000 Received: from sjc-savbu-bld03.cisco.com (sjc-savbu-bld03.cisco.com [171.71.188.58]) by mtv-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id rBHGn36g021247; Tue, 17 Dec 2013 16:49:03 GMT Received: by sjc-savbu-bld03.cisco.com (Postfix, from userid 246720) id 866B03F5AE; Tue, 17 Dec 2013 08:49:03 -0800 (PST) From: Upinder Malhi To: linux-rdma@vger.kernel.org Cc: Upinder Malhi Subject: [PATCH for-next 1/9] IB/usnic: Fix stack frame size exceed warnings Date: Tue, 17 Dec 2013 08:48:29 -0800 Message-Id: <1387298917-7365-2-git-send-email-umalhi@cisco.com> X-Mailer: git-send-email 1.8.0-rc0 In-Reply-To: <1387298917-7365-1-git-send-email-umalhi@cisco.com> References: <1387298917-7365-1-git-send-email-umalhi@cisco.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 --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); }