return LNET_PID_LUSTRE;
}
-int ptlrpc_ni_init(void)
+static int ptlrpc_ni_init(void)
{
int rc;
lnet_pid_t pid;
return GSS_S_COMPLETE;
}
-int gss_display_kerberos(struct gss_ctx *ctx,
- char *buf,
- int bufsize)
+static int gss_display_kerberos(struct gss_ctx *ctx,
+ char *buf, int bufsize)
{
struct krb5_ctx *kctx = ctx->internal_ctx_id;
int written;
OBD_FREE_PTR(null_context);
}
+static
int gss_display_null(struct gss_ctx *gss_context, char *buf, int bufsize)
{
return scnprintf(buf, bufsize, "null");
return GSS_S_COMPLETE;
}
-void sk_construct_rfc3686_iv(__u8 *iv, __u32 nonce, __u64 partial_iv)
+static void sk_construct_rfc3686_iv(__u8 *iv, __u32 nonce, __u64 partial_iv)
{
__u32 ctr = cpu_to_be32(1);
sk_delete_context(sk_context);
}
-int gss_display_sk(struct gss_ctx *gss_context, char *buf, int bufsize)
+static int gss_display_sk(struct gss_ctx *gss_context, char *buf, int bufsize)
{
return scnprintf(buf, bufsize, "sk");
}
.write = gss_proc_write_secinit,
};
-int sptlrpc_krb5_allow_old_client_csum_seq_show(struct seq_file *m, void *data)
+static int
+sptlrpc_krb5_allow_old_client_csum_seq_show(struct seq_file *m,
+ void *data)
{
seq_printf(m, "%u\n", krb5_allow_old_client_csum);
return 0;
}
-ssize_t sptlrpc_krb5_allow_old_client_csum_seq_write(struct file *file,
- const char __user *buffer,
- size_t count, loff_t *off)
+static ssize_t
+sptlrpc_krb5_allow_old_client_csum_seq_write(struct file *file,
+ const char __user *buffer,
+ size_t count, loff_t *off)
{
bool val;
int rc;
LPROC_SEQ_FOPS(sptlrpc_krb5_allow_old_client_csum);
#ifdef HAVE_GSS_KEYRING
-int sptlrpc_gss_check_upcall_ns_seq_show(struct seq_file *m, void *data)
+static int sptlrpc_gss_check_upcall_ns_seq_show(struct seq_file *m, void *data)
{
seq_printf(m, "%u\n", gss_check_upcall_ns);
return 0;
}
-ssize_t sptlrpc_gss_check_upcall_ns_seq_write(struct file *file,
- const char __user *buffer,
- size_t count, loff_t *off)
+static ssize_t sptlrpc_gss_check_upcall_ns_seq_write(struct file *file,
+ const char __user *buffer,
+ size_t count, loff_t *off)
{
bool val;
int rc;
/**
* Dump a request and/or reply
*/
-void __req_capsule_dump(struct req_capsule *pill, enum req_location loc)
+static void __req_capsule_dump(struct req_capsule *pill, enum req_location loc)
{
const struct req_format *fmt;
const struct req_msg_field *field;
/**
* Step through active config and write to disk.
*/
-struct dt_object *nodemap_save_config_cache(const struct lu_env *env,
- struct dt_device *dev,
- struct local_oid_storage *los)
+static struct dt_object *
+nodemap_save_config_cache(const struct lu_env *env,
+ struct dt_device *dev,
+ struct local_oid_storage *los)
{
struct dt_object *o;
struct lu_nodemap *nodemap;
return rc;
}
-
int nodemap_index_read(struct lu_env *env,
struct nm_config_file *ncf,
struct idx_info *ii,
nb->rnb_offset, nb->rnb_len, nb->rnb_flags);
}
-void dump_obdo(struct obdo *oa)
+static void dump_obdo(struct obdo *oa)
{
u64 valid = oa->o_valid;
lustre_swab_hsm_extent(&hui->hui_extent);
}
-void lustre_swab_lu_extent(struct lu_extent *le)
+static void lustre_swab_lu_extent(struct lu_extent *le)
{
__swab64s(&le->e_start);
__swab64s(&le->e_end);
object_update_param_size(param));
}
}
-
int lustre_swab_object_update_request(struct object_update_request *our,
__u32 len)
{
return size;
}
-void lustre_swab_object_update_result(struct object_update_result *our)
+static void
+lustre_swab_object_update_result_no_len(struct object_update_result *our)
{
__swab32s(&our->our_rc);
__swab16s(&our->our_datalen);
ourp = object_update_result_get(our, i, NULL);
if (ourp == NULL)
return -EPROTO;
- lustre_swab_object_update_result(ourp);
+ lustre_swab_object_update_result_no_len(ourp);
}
return size;