Staging: lustre: ptlrpc: pack_generic: Declare local functions as static
Declare functions lustre_swab_ldlm_lock_desc and dump_obdo as static since they are used only in this particular file. Also remove them from corresponding header files. Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
38a70c9b62
Коммит
09eb98b356
|
@ -2785,8 +2785,6 @@ struct ldlm_lock_desc {
|
|||
ldlm_wire_policy_data_t l_policy_data;
|
||||
};
|
||||
|
||||
void lustre_swab_ldlm_lock_desc(struct ldlm_lock_desc *l);
|
||||
|
||||
#define LDLM_LOCKREQ_HANDLES 2
|
||||
#define LDLM_ENQUEUE_CANCEL_OFF 1
|
||||
|
||||
|
@ -3355,7 +3353,6 @@ void lustre_swab_lustre_cfg(struct lustre_cfg *lcfg);
|
|||
/* Functions for dumping PTLRPC fields */
|
||||
void dump_rniobuf(struct niobuf_remote *rnb);
|
||||
void dump_ioo(struct obd_ioobj *nb);
|
||||
void dump_obdo(struct obdo *oa);
|
||||
void dump_ost_body(struct ost_body *ob);
|
||||
void dump_rcs(__u32 *rc);
|
||||
|
||||
|
|
|
@ -1977,14 +1977,13 @@ void lustre_swab_ldlm_resource_desc(struct ldlm_resource_desc *r)
|
|||
}
|
||||
EXPORT_SYMBOL(lustre_swab_ldlm_resource_desc);
|
||||
|
||||
void lustre_swab_ldlm_lock_desc(struct ldlm_lock_desc *l)
|
||||
static void lustre_swab_ldlm_lock_desc(struct ldlm_lock_desc *l)
|
||||
{
|
||||
lustre_swab_ldlm_resource_desc(&l->l_resource);
|
||||
__swab32s(&l->l_req_mode);
|
||||
__swab32s(&l->l_granted_mode);
|
||||
lustre_swab_ldlm_policy_data(&l->l_policy_data);
|
||||
}
|
||||
EXPORT_SYMBOL(lustre_swab_ldlm_lock_desc);
|
||||
|
||||
void lustre_swab_ldlm_request(struct ldlm_request *rq)
|
||||
{
|
||||
|
@ -2033,7 +2032,7 @@ void dump_rniobuf(struct niobuf_remote *nb)
|
|||
}
|
||||
EXPORT_SYMBOL(dump_rniobuf);
|
||||
|
||||
void dump_obdo(struct obdo *oa)
|
||||
static void dump_obdo(struct obdo *oa)
|
||||
{
|
||||
__u32 valid = oa->o_valid;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче