From patchwork Thu May 18 15:22:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9734667 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 AC534600CC for ; Thu, 18 May 2017 15:23:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94C06265B9 for ; Thu, 18 May 2017 15:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8653528807; Thu, 18 May 2017 15:23:09 +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.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id E3D5E265B9 for ; Thu, 18 May 2017 15:23:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1dBNGd-0002Xh-48; Thu, 18 May 2017 15:23:07 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1dBNGc-0002Xc-4d for v9fs-developer@lists.sourceforge.net; Thu, 18 May 2017 15:23:06 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.83.65 as permitted sender) client-ip=74.125.83.65; envelope-from=weiyj.lk@gmail.com; helo=mail-pg0-f65.google.com; Received: from mail-pg0-f65.google.com ([74.125.83.65]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1dBNGZ-0001qM-6z for v9fs-developer@lists.sourceforge.net; Thu, 18 May 2017 15:23:06 +0000 Received: by mail-pg0-f65.google.com with SMTP id h64so6346379pge.3 for ; Thu, 18 May 2017 08:23:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2fLZnZwp1vTT2zmNnazSaI6YlFE11s9Ij4x9PnbSQnY=; b=HiAOjLVPiUiTKQAqa3NpZYLoZdMJLQZGoGtWkFJbWlqNzHyuuGfLdPqQOyADmN1N5e Xkn6gSU5Suc5JCX3b8lSD2XPiiJe8OGMnfgxiAY0E9x0VWcSyLwqFxV5MgvqgRRLaBIJ 2ag873ygvAPrj0puMayQkiq8UduuhHKQPZb29LMf7cRxXsctHmUp0KeVhIjN9BQw2PVe LIZLo5CIhwMrNt2R6iu6mU19TJ/xYncCSI6LdXjYPFlDkla58UitsSRuKWiTx695CAlM /ZDXqfxwUCW1KWRqi9r6YukNVNmw7N8SHWsmFpxu+6yMXNW446v+V1EsWgXngkrkClLN 0CPQ== X-Gm-Message-State: AODbwcDG3jwcGTICrm1ZG4f2ENxLp2q+Pt8sqNIWyoe4rFEpdSrKqDl0 dXDHH4Iph1Lw5A== X-Received: by 10.84.210.205 with SMTP id a71mr5634057pli.136.1495120977543; Thu, 18 May 2017 08:22:57 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id 134sm8941108pgh.43.2017.05.18.08.22.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 08:22:56 -0700 (PDT) From: Wei Yongjun To: Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , Stefano Stabellini , Juergen Gross Date: Thu, 18 May 2017 15:22:41 +0000 Message-Id: <20170518152241.4830-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-Headers-End: 1dBNGZ-0001qM-6z Cc: v9fs-developer@lists.sourceforge.net, Wei Yongjun , netdev@vger.kernel.org Subject: [V9fs-developer] [PATCH net-next] xen/9pfs: p9_trans_xen_init and p9_trans_xen_exit can be static 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-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warnings: net/9p/trans_xen.c:528:5: warning: symbol 'p9_trans_xen_init' was not declared. Should it be static? net/9p/trans_xen.c:540:6: warning: symbol 'p9_trans_xen_exit' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- net/9p/trans_xen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c index 71e8564..3deb17f 100644 --- a/net/9p/trans_xen.c +++ b/net/9p/trans_xen.c @@ -525,7 +525,7 @@ static struct xenbus_driver xen_9pfs_front_driver = { .otherend_changed = xen_9pfs_front_changed, }; -int p9_trans_xen_init(void) +static int p9_trans_xen_init(void) { if (!xen_domain()) return -ENODEV; @@ -537,7 +537,7 @@ int p9_trans_xen_init(void) } module_init(p9_trans_xen_init); -void p9_trans_xen_exit(void) +static void p9_trans_xen_exit(void) { v9fs_unregister_trans(&p9_xen_trans); return xenbus_unregister_driver(&xen_9pfs_front_driver);