mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
To: ericvh@gmail.com, rminnich@sandia.gov, lucho@ionkov.net,
	v9fs-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] 9p: four functions can become static
Date: Mon, 14 Apr 2008 02:43:45 +0400	[thread overview]
Message-ID: <1208126626-25838-2-git-send-email-dmitri.vorobiev@gmail.com> (raw)
In-Reply-To: <1208126626-25838-1-git-send-email-dmitri.vorobiev@gmail.com>

The following functions can become static:

p9_client_rpc()
p9_fd_rpc()
p9_conn_rpcnb()
p9_conn_cancel()

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
---
 net/9p/client.c   |    2 +-
 net/9p/trans_fd.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/9p/client.c b/net/9p/client.c
index 84e087e..0a20095 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -117,7 +117,7 @@ static void parse_opts(char *options, struct p9_client *clnt)
  * @tc: request to be sent
  * @rc: pointer where a pointer to the response is stored
  */
-int
+static int
 p9_client_rpc(struct p9_client *c, struct p9_fcall *tc,
 	struct p9_fcall **rc)
 {
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c
index f624dff..7ec221f 100644
--- a/net/9p/trans_fd.c
+++ b/net/9p/trans_fd.c
@@ -965,7 +965,7 @@ p9_conn_rpc_cb(struct p9_req *req, void *a)
  * @tc: request to be sent
  * @rc: pointer where a pointer to the response is stored
  */
-int
+static int
 p9_fd_rpc(struct p9_trans *t, struct p9_fcall *tc, struct p9_fcall **rc)
 {
 	struct p9_trans_fd *p = t->priv;
@@ -1043,7 +1043,7 @@ p9_fd_rpc(struct p9_trans *t, struct p9_fcall *tc, struct p9_fcall **rc)
  * @cb: callback function to be called when response arrives
  * @cba: value to pass to the callback function
  */
-int p9_conn_rpcnb(struct p9_conn *m, struct p9_fcall *tc,
+static int p9_conn_rpcnb(struct p9_conn *m, struct p9_fcall *tc,
 		   p9_conn_req_callback cb, void *a)
 {
 	int err;
@@ -1066,7 +1066,7 @@ int p9_conn_rpcnb(struct p9_conn *m, struct p9_fcall *tc,
  * @m: mux data
  * @err: error code
  */
-void p9_conn_cancel(struct p9_conn *m, int err)
+static void p9_conn_cancel(struct p9_conn *m, int err)
 {
 	struct p9_req *req, *rtmp;
 	LIST_HEAD(cancel_list);
-- 
1.5.3


  reply	other threads:[~2008-04-13 22:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13 22:43 9p: a couple of cleanup patches Dmitri Vorobiev
2008-04-13 22:43 ` Dmitri Vorobiev [this message]
2008-04-13 22:43 ` [PATCH 2/2] 9p: remove redundant variable initialization in net/9p/mod.c Dmitri Vorobiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1208126626-25838-2-git-send-email-dmitri.vorobiev@gmail.com \
    --to=dmitri.vorobiev@gmail.com \
    --cc=ericvh@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucho@ionkov.net \
    --cc=rminnich@sandia.gov \
    --cc=v9fs-developer@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®