2005-01-16 08:03:48

by Adrian Bunk

[permalink] [raw]
Subject: [-mm patch] fs/fuse/dev.c: make two functions static

The patch below makes two needlessly global functions static.


Signed-off-by: Adrian Bunk <[email protected]>

--- linux-2.6.11-rc1-mm1-full/fs/fuse/dev.c.old 2005-01-16 05:56:22.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/fs/fuse/dev.c 2005-01-16 05:56:35.000000000 +0100
@@ -119,7 +119,7 @@
return intr ? NULL : do_get_request(fc);
}

-void fuse_putback_request(struct fuse_conn *fc, struct fuse_req *req)
+static void fuse_putback_request(struct fuse_conn *fc, struct fuse_req *req)
{
if (!req->preallocated)
fuse_request_free(req);
@@ -293,7 +293,7 @@
request_send_wait(fc, req, 0);
}

-void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req)
+static void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req)
{
spin_lock(&fuse_lock);
if (fc->file) {


2005-01-16 10:59:13

by Miklos Szeredi

[permalink] [raw]
Subject: Re: [-mm patch] fs/fuse/dev.c: make two functions static

Thanks Adrian,

The patch below makes two needlessly global functions static.


Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>

--- linux-2.6.11-rc1-mm1-full/fs/fuse/dev.c.old 2005-01-16 05:56:22.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/fs/fuse/dev.c 2005-01-16 05:56:35.000000000 +0100
@@ -119,7 +119,7 @@
return intr ? NULL : do_get_request(fc);
}

-void fuse_putback_request(struct fuse_conn *fc, struct fuse_req *req)
+static void fuse_putback_request(struct fuse_conn *fc, struct fuse_req *req)
{
if (!req->preallocated)
fuse_request_free(req);
@@ -293,7 +293,7 @@
request_send_wait(fc, req, 0);
}

-void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req)
+static void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req)
{
spin_lock(&fuse_lock);
if (fc->file) {