[RHEL7,COMMIT] fuse kio: Unexport pcs_ioconn_close() and pcs_ioconn_unregister()

Submitted by Konstantin Khorenko on Oct. 29, 2018, 8:53 a.m.

Details

Message ID 201810290853.w9T8rbvt032009@finist-ce7.sw.ru
State New
Series "fuse kio: Unexport pcs_ioconn_close() and pcs_ioconn_unregister()"
Headers show

Commit Message

Konstantin Khorenko Oct. 29, 2018, 8:53 a.m.
The commit is pushed to "branch-rh7-3.10.0-862.14.4.vz7.72.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.14.4.vz7.72.14
------>
commit 9a6bedb42fd180ce88b032b1107beb11bdb9a1fa
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Mon Oct 29 11:53:37 2018 +0300

    fuse kio: Unexport pcs_ioconn_close() and pcs_ioconn_unregister()
    
    They are used only in the file they are declared.
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
    Reviewed-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_sock_io.c | 4 ++--
 fs/fuse/kio/pcs/pcs_sock_io.h | 5 -----
 2 files changed, 2 insertions(+), 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/kio/pcs/pcs_sock_io.c b/fs/fuse/kio/pcs/pcs_sock_io.c
index 04b63b58dad6..ede71c255084 100644
--- a/fs/fuse/kio/pcs/pcs_sock_io.c
+++ b/fs/fuse/kio/pcs/pcs_sock_io.c
@@ -42,13 +42,13 @@  void sio_push(struct pcs_sockio * sio)
 //// caseB: kernelspace want to close socket and have to somehow
 ////	    notify about this to userspace (NEW API REQUIRED)
 static void pcs_restore_sockets(struct pcs_ioconn *ioconn);
-void pcs_ioconn_unregister(struct pcs_ioconn *ioconn)
+static void pcs_ioconn_unregister(struct pcs_ioconn *ioconn)
 {
 	if (!test_bit(PCS_IOCONN_BF_DEAD, &ioconn->flags))
 		set_bit(PCS_IOCONN_BF_DEAD, &ioconn->flags);
 }
 
-void pcs_ioconn_close(struct pcs_ioconn *ioconn)
+static void pcs_ioconn_close(struct pcs_ioconn *ioconn)
 {
 	kernel_sock_shutdown(ioconn->socket, SHUT_RDWR);
 }
diff --git a/fs/fuse/kio/pcs/pcs_sock_io.h b/fs/fuse/kio/pcs/pcs_sock_io.h
index 30771170b84c..7795212045c2 100644
--- a/fs/fuse/kio/pcs/pcs_sock_io.h
+++ b/fs/fuse/kio/pcs/pcs_sock_io.h
@@ -231,9 +231,4 @@  struct bufqueue;
 */
 struct pcs_msg* bufqueue_as_pcs_output_msg(struct bufqueue *bq, u32 size);
 
-
-void pcs_ioconn_unregister(struct pcs_ioconn *ioconn);
-void pcs_ioconn_close(struct pcs_ioconn *ioconn);
-
-
 #endif /* _PCS_SOCK_IO_H_ */