From patchwork Sun Aug 28 14:57:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74876 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1229253qga; Sun, 28 Aug 2016 07:58:07 -0700 (PDT) X-Received: by 10.66.16.97 with SMTP id f1mr23918168pad.39.1472396287707; Sun, 28 Aug 2016 07:58:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si33755663pfg.113.2016.08.28.07.58.07; Sun, 28 Aug 2016 07:58:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755625AbcH1O6F (ORCPT + 27 others); Sun, 28 Aug 2016 10:58:05 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35451 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752567AbcH1O6D (ORCPT ); Sun, 28 Aug 2016 10:58:03 -0400 Received: by mail-pf0-f170.google.com with SMTP id x72so43328304pfd.2 for ; Sun, 28 Aug 2016 07:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=5CE8eOOlUROhML2t71aoL8dnXg1yq+VnDtu+HZYag3g=; b=efYaCi5DnUvX/kkhk50TEPnfDAXBAnu2LAfeC+SfO6z6OMReu6NfOzp1PBlWTv3F2H x5Tc90dqCCQm+IkVe7dGDYeu50vl6EXSzDY8jXqNUL8YLuAdWYCyiRjbI513bJLA1tSu 8DdfikCc5FBxq0MmIe3vN60y7CL7KGFXKBKhA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5CE8eOOlUROhML2t71aoL8dnXg1yq+VnDtu+HZYag3g=; b=Voa+MDdUt1JLEn1LhFGwbZRQiad1XZD1nibxO49BY1UgQN5PitnS4eH48ObKWW+rv9 DX4DkrqL1G1oKoM9mZclbADo8Dt9x8XCIF77PKKRcWhU6NY5BRR8WEXnWsb25t9pCaZ6 U+GQmxk22G62r60KEuSTGVaa9sA3j6yewflywy30MqVCEUFWiayV156axJdquTK+LFdg MCGuT6HtrTzezAHEuDLoUItE5YhnKEX3TCbd9i58pQ32ajKnrLH8AkaMzevU7HFnhYw7 UuUF+T3+Jh5Gd6xQrh28rOsh2O0+Zpylq2JIbJ2EDEbtKGJrsni6ifD7NGQVm6CvBTr0 Y3Zg== X-Gm-Message-State: AE9vXwMuJClG+mbHyioa35Hqe0Xn1Xs+P+cwnKuD83A9ThbPis+BIUW8yja2n6aht9dmcZZO X-Received: by 10.98.17.152 with SMTP id 24mr24010662pfr.13.1472396282690; Sun, 28 Aug 2016 07:58:02 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.142]) by smtp.gmail.com with ESMTPSA id 71sm42473741pfy.32.2016.08.28.07.57.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Aug 2016 07:58:02 -0700 (PDT) From: Baoyou Xie To: swise@chelsio.com, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@linaro.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH v3] IB/cxgb4: Mark symbols static for _free_qp Date: Sun, 28 Aug 2016 22:57:11 +0800 Message-Id: <1472396231-16937-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when build kernel with W=1: drivers/infiniband/hw/cxgb4/qp.c:686:6: warning: no previous prototype for '_free_qp' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks it 'static'. Signed-off-by: Baoyou Xie Reviewed-by: Yuval Shaia Reviewed-by: Leon Romanovsky --- drivers/infiniband/hw/cxgb4/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index edb1172..6904352 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -683,7 +683,7 @@ static int build_inv_stag(union t4_wr *wqe, struct ib_send_wr *wr, return 0; } -void _free_qp(struct kref *kref) +static void _free_qp(struct kref *kref) { struct c4iw_qp *qhp;