staging: lustre: declare some functions as static
authorZheng Di <zhengdi05@gmail.com>
Mon, 1 Sep 2014 17:51:28 +0000 (01:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Sep 2014 17:32:58 +0000 (10:32 -0700)
Declare these functions as static:
llog_alloc_handle() is used in llog_open() only.
llog_free_handle() is used in llog_close() only.

Signed-off-by: Zheng Di <zhengdi05@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/llog.c

index cce86890c563e5341a2e310f2ed67ffe955228c6..ebdc42f3395240f6a8195a67e8201bb8643c6305 100644 (file)
@@ -56,7 +56,7 @@
  * Allocate a new log or catalog handle
  * Used inside llog_open().
  */
-struct llog_handle *llog_alloc_handle(void)
+static struct llog_handle *llog_alloc_handle(void)
 {
        struct llog_handle *loghandle;
 
@@ -75,7 +75,7 @@ struct llog_handle *llog_alloc_handle(void)
 /*
  * Free llog handle and header data if exists. Used in llog_close() only
  */
-void llog_free_handle(struct llog_handle *loghandle)
+static void llog_free_handle(struct llog_handle *loghandle)
 {
        LASSERT(loghandle != NULL);
 
This page took 0.025337 seconds and 5 git commands to generate.