Skip to contentSkip to conversation

fs/fuse/dev.c: make two functions static

PATCH In review Adrian Bunk 2 participants 2 messages Jan 16, 2005 FUSE filesystem core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/fuse/dev.c: make two functions static

The patch below makes two needlessly global functions static.

fs/fuse/dev.c renamed from fs/fuse/dev.c.old +2 -2
@@ -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) {
maintainer
#1 lore raw

Thanks Adrian,

The patch below makes two needlessly global functions static.

fs/fuse/dev.c renamed from fs/fuse/dev.c.old +2 -2
@@ -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) {