Skip to contentSkip to conversation

staging: lustre: declare some functions as static

PATCH New Zheng Di 1 participant 1 message Sep 2, 2014 Staging

lore
Share & tools
lore

Zheng Di

author
#0 lore raw

PATCH 1/1 staging: lustre: declare some functions as static

Declare these functions as static:
llog_alloc_handle() is used in llog_open() only.
llog_free_handle() is used in llog_close() only.

---
 drivers/staging/lustre/lustre/obdclass/llog.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/obdclass/llog.c +2 -2
index cce8689..ebdc42f 100644
@@ -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);
 
Signature · 1 line
1.7.9.5