Staging: lustre: obdclass: llog_cat: Declare local functions as static
authorShraddha Barke <shraddha.6596@gmail.com>
Wed, 7 Oct 2015 20:06:04 +0000 (01:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:21:08 +0000 (10:21 +0100)
Declare llog_cat_id2handle and llog_cat_process_or_fork as static
since they are used only in this particular file. Also remove the
corresponding declarations from header files.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_log.h
drivers/staging/lustre/lustre/obdclass/llog_cat.c
drivers/staging/lustre/lustre/obdclass/llog_internal.h

index 958d012..5d3b2df 100644 (file)
@@ -165,9 +165,6 @@ struct llog_process_cat_data {
 struct thandle;
 
 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle);
-int llog_cat_process_or_fork(const struct lu_env *env,
-                            struct llog_handle *cat_llh, llog_cb_t cb,
-                            void *data, int startcat, int startidx, bool fork);
 int llog_cat_process(const struct lu_env *env, struct llog_handle *cat_llh,
                     llog_cb_t cb, void *data, int startcat, int startidx);
 
index 3984445..c63b720 100644 (file)
  * This takes extra reference on llog_handle via llog_handle_get() and require
  * this reference to be put by caller using llog_handle_put()
  */
-int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle,
-                      struct llog_handle **res, struct llog_logid *logid)
+static int llog_cat_id2handle(const struct lu_env *env,
+                             struct llog_handle *cathandle,
+                             struct llog_handle **res,
+                             struct llog_logid *logid)
 {
        struct llog_handle      *loghandle;
        int                      rc = 0;
@@ -189,10 +191,10 @@ static int llog_cat_process_cb(const struct lu_env *env,
        return rc;
 }
 
-int llog_cat_process_or_fork(const struct lu_env *env,
-                            struct llog_handle *cat_llh,
-                            llog_cb_t cb, void *data, int startcat,
-                            int startidx, bool fork)
+static int llog_cat_process_or_fork(const struct lu_env *env,
+                                   struct llog_handle *cat_llh,
+                                   llog_cb_t cb, void *data, int startcat,
+                                   int startidx, bool fork)
 {
        struct llog_process_data d;
        struct llog_log_hdr *llh = cat_llh->lgh_hdr;
@@ -228,7 +230,6 @@ int llog_cat_process_or_fork(const struct lu_env *env,
 
        return rc;
 }
-EXPORT_SYMBOL(llog_cat_process_or_fork);
 
 int llog_cat_process(const struct lu_env *env, struct llog_handle *cat_llh,
                     llog_cb_t cb, void *data, int startcat, int startidx)
index 5dff617..b9fe4b0 100644 (file)
@@ -66,8 +66,6 @@ void llog_info_fini(void);
 
 void llog_handle_get(struct llog_handle *loghandle);
 void llog_handle_put(struct llog_handle *loghandle);
-int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle,
-                      struct llog_handle **res, struct llog_logid *logid);
 int class_config_dump_handler(const struct lu_env *env,
                              struct llog_handle *handle,
                              struct llog_rec_hdr *rec, void *data);