From patchwork Tue Jul 30 09:15:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xishi Qiu X-Patchwork-Id: 2835329 Return-Path: X-Original-To: patchwork-v9fs-devel@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 9B0D69F7D6 for ; Tue, 30 Jul 2013 09:18:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E985D20207 for ; Tue, 30 Jul 2013 09:18:36 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1C7920205 for ; Tue, 30 Jul 2013 09:18:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V464f-0002el-Hk; Tue, 30 Jul 2013 09:18:33 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V464a-0002ee-Mw for v9fs-developer@lists.sourceforge.net; Tue, 30 Jul 2013 09:18:28 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of huawei.com designates 119.145.14.66 as permitted sender) client-ip=119.145.14.66; envelope-from=qiuxishi@huawei.com; helo=szxga03-in.huawei.com; Received: from szxga03-in.huawei.com ([119.145.14.66]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.76) id 1V464Y-0001bP-BS for v9fs-developer@lists.sourceforge.net; Tue, 30 Jul 2013 09:18:28 +0000 Received: from 172.24.2.119 (EHLO szxeml206-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.2a-FCS FastPath queued) with ESMTP id ACT53529; Tue, 30 Jul 2013 17:16:45 +0800 (CST) Received: from SZXEML462-HUB.china.huawei.com (10.82.67.205) by szxeml206-edg.china.huawei.com (172.24.2.59) with Microsoft SMTP Server (TLS) id 14.1.323.7; Tue, 30 Jul 2013 17:15:57 +0800 Received: from [10.135.74.196] (10.135.74.196) by szxeml462-hub.china.huawei.com (10.82.67.205) with Microsoft SMTP Server id 14.1.323.7; Tue, 30 Jul 2013 17:15:59 +0800 Message-ID: <51F7844F.60904@huawei.com> Date: Tue, 30 Jul 2013 17:15:59 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: , , , , , , LKML X-Originating-IP: [10.135.74.196] X-CFilter-Loop: Reflected X-Spam-Score: -3.0 (---) X-Headers-End: 1V464Y-0001bP-BS Subject: [V9fs-developer] [PATCH] net: fix build warning in trans_rdma.c X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY 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 When building v3.11-rc3, I get the following warning: ... net/9p/trans_rdma.c:594: warning: ‘rdma_cancelled’ defined but not used ... As the function is not be used, so remove it. Signed-off-by: Xishi Qiu --- net/9p/trans_rdma.c | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c index 928f2bb..8f68df5 100644 --- a/net/9p/trans_rdma.c +++ b/net/9p/trans_rdma.c @@ -588,17 +588,6 @@ static int rdma_cancel(struct p9_client *client, struct p9_req_t *req) return 1; } -/* A request has been fully flushed without a reply. - * That means we have posted one buffer in excess. - */ -static int rdma_cancelled(struct p9_client *client, struct p9_req_t *req) -{ - struct p9_trans_rdma *rdma = client->trans; - - atomic_inc(&rdma->excess_rc); - return 0; -} - /** * trans_create_rdma - Transport method for creating atransport instance * @client: client instance