Staging: lustre: obdclass: llog_cat: Declare local functions as static
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>
This commit is contained in:
Родитель
be23ce1dfb
Коммит
17ad0ce605
|
@ -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);
|
||||
|
||||
|
|
|
@ -62,8 +62,10 @@
|
|||
* 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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче