From patchwork Sat Jul 30 00:37:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9253013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D55C6075F for ; Sat, 30 Jul 2016 00:37:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E724283A6 for ; Sat, 30 Jul 2016 00:37:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82DCB28444; Sat, 30 Jul 2016 00:37:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CB70283A6 for ; Sat, 30 Jul 2016 00:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752253AbcG3Ahj (ORCPT ); Fri, 29 Jul 2016 20:37:39 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34988 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667AbcG3Ahi (ORCPT ); Fri, 29 Jul 2016 20:37:38 -0400 Received: by mail-pa0-f66.google.com with SMTP id cf3so5921387pad.2 for ; Fri, 29 Jul 2016 17:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dkdQme1vXGOyrUViLr4vKQ+4H8G7CIvfrr9p9FvUVq8=; b=mTKic1wcU6Eg9Xc0smZOVyo/wGE/GQuzP9NYBcvPQqtiY8Q6S/tXs8U0x9yRMxaf3x /iSZHgafez1xOhJky52s2RMpV99p0kvLTcTTtn1Yj4bggGpSGjotSr6WGI+wpU80NLIe 68bLCqAh20WzsqWGDDpNNPmD6fAFgPzrW9JmRNrwn68alFaPCLzBCEEnkWX8cL/ULUYX 0d3AhGlGRHUg8Yit10T+mQej0cOGvuwbloXFXKuB6Q5JEnTZZ4H/Ies6m0C93HWYUjVN oCh2nOmPtAZRQBeDEwiHt7yJB6As14tI1ERV4AAOe4WCK2SJY6PHAA5HAombJzhnpqsM mDkw== 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:mime-version :content-transfer-encoding; bh=dkdQme1vXGOyrUViLr4vKQ+4H8G7CIvfrr9p9FvUVq8=; b=VW/t0depViO/vYM3EJZOLgmGECR6pwm/QlAG/kQ5MQupDb6rcvYzgIe2oQOdxvtTed 1R3AANLDb9DlXnURm24ITPXy6e23g5xjJLge4l8sDfjX0xJvfiANkuhVVpPZmp5rlv1R L43nbdxGzkAlqAGh723IjlwqpqEfTRExo7duD4ZWb7EQTUN503mwOmiv5eRql3Q5hx2d oOyW9C1pMKenCCCyPnoD0Vmuwd3Gk/NoTKtWxJREjDN9w1OO4uG2vmWHmzZvMiCTWfjr qWaXM3u/jbl9R/ak30fcMkkfwdViazK+nCsqd+6fUjg2FSqPnbidj3MLIYQJ7GDsmMu8 4t6A== X-Gm-Message-State: AEkoouudP+WStfCy6jeT9eF8ovXiKvWB1ylZ2Atd8YHPpqbUkpoiSJEG6pB9nSJJiQ8Aiw== X-Received: by 10.66.222.202 with SMTP id qo10mr73531215pac.76.1469839057406; Fri, 29 Jul 2016 17:37:37 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id yv9sm27805218pab.0.2016.07.29.17.37.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jul 2016 17:37:36 -0700 (PDT) From: Wei Yongjun To: Ilya Dryomov , "Yan, Zheng" , Sage Weil Cc: Wei Yongjun , ceph-devel@vger.kernel.org Subject: [PATCH -next] libceph: fix non static symbol warning Date: Sat, 30 Jul 2016 00:37:31 +0000 Message-Id: <1469839051-3525-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warning: net/ceph/mon_client.c:577:6: warning: symbol 'cancel_generic_request' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- net/ceph/mon_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index c83326c..ef34a02 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c @@ -574,7 +574,7 @@ static void complete_generic_request(struct ceph_mon_generic_request *req) put_generic_request(req); } -void cancel_generic_request(struct ceph_mon_generic_request *req) +static void cancel_generic_request(struct ceph_mon_generic_request *req) { struct ceph_mon_client *monc = req->monc; struct ceph_mon_generic_request *lookup_req;