Commit 0b987e3e authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: libcfs: name parameters for function prototypes

Give the parameters names for the function
prototypes in the libcfs headers.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4c6d33f9
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
sigset_t cfs_block_allsigs(void); sigset_t cfs_block_allsigs(void);
sigset_t cfs_block_sigs(unsigned long sigs); sigset_t cfs_block_sigs(unsigned long sigs);
sigset_t cfs_block_sigsinv(unsigned long sigs); sigset_t cfs_block_sigsinv(unsigned long sigs);
void cfs_restore_sigs(sigset_t); void cfs_restore_sigs(sigset_t sigset);
void cfs_clear_sigpending(void); void cfs_clear_sigpending(void);
/* /*
...@@ -71,7 +71,7 @@ void cfs_clear_sigpending(void); ...@@ -71,7 +71,7 @@ void cfs_clear_sigpending(void);
/* returns a random 32-bit integer */ /* returns a random 32-bit integer */
unsigned int cfs_rand(void); unsigned int cfs_rand(void);
/* seed the generator */ /* seed the generator */
void cfs_srand(unsigned int, unsigned int); void cfs_srand(unsigned int seed1, unsigned int seed2);
void cfs_get_random_bytes(void *buf, int size); void cfs_get_random_bytes(void *buf, int size);
#include "libcfs_debug.h" #include "libcfs_debug.h"
......
...@@ -708,25 +708,26 @@ typedef int (*cfs_hash_for_each_cb_t)(struct cfs_hash *hs, ...@@ -708,25 +708,26 @@ typedef int (*cfs_hash_for_each_cb_t)(struct cfs_hash *hs,
void * void *
cfs_hash_lookup(struct cfs_hash *hs, const void *key); cfs_hash_lookup(struct cfs_hash *hs, const void *key);
void void
cfs_hash_for_each(struct cfs_hash *hs, cfs_hash_for_each_cb_t, void *data); cfs_hash_for_each(struct cfs_hash *hs, cfs_hash_for_each_cb_t cb, void *data);
void void
cfs_hash_for_each_safe(struct cfs_hash *hs, cfs_hash_for_each_cb_t, void *data); cfs_hash_for_each_safe(struct cfs_hash *hs, cfs_hash_for_each_cb_t cb,
void *data);
int int
cfs_hash_for_each_nolock(struct cfs_hash *hs, cfs_hash_for_each_cb_t, cfs_hash_for_each_nolock(struct cfs_hash *hs, cfs_hash_for_each_cb_t cb,
void *data, int start); void *data, int start);
int int
cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t, cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t cb,
void *data); void *data);
void void
cfs_hash_for_each_key(struct cfs_hash *hs, const void *key, cfs_hash_for_each_key(struct cfs_hash *hs, const void *key,
cfs_hash_for_each_cb_t, void *data); cfs_hash_for_each_cb_t cb, void *data);
typedef int (*cfs_hash_cond_opt_cb_t)(void *obj, void *data); typedef int (*cfs_hash_cond_opt_cb_t)(void *obj, void *data);
void void
cfs_hash_cond_del(struct cfs_hash *hs, cfs_hash_cond_opt_cb_t, void *data); cfs_hash_cond_del(struct cfs_hash *hs, cfs_hash_cond_opt_cb_t cb, void *data);
void void
cfs_hash_hlist_for_each(struct cfs_hash *hs, unsigned int hindex, cfs_hash_hlist_for_each(struct cfs_hash *hs, unsigned int hindex,
cfs_hash_for_each_cb_t, void *data); cfs_hash_for_each_cb_t cb, void *data);
int cfs_hash_is_empty(struct cfs_hash *hs); int cfs_hash_is_empty(struct cfs_hash *hs);
__u64 cfs_hash_size_get(struct cfs_hash *hs); __u64 cfs_hash_size_get(struct cfs_hash *hs);
......
...@@ -75,7 +75,7 @@ do { \ ...@@ -75,7 +75,7 @@ do { \
#define KLASSERT(e) LASSERT(e) #define KLASSERT(e) LASSERT(e)
void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *); void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msg);
#define LBUG() \ #define LBUG() \
do { \ do { \
...@@ -170,7 +170,7 @@ do { \ ...@@ -170,7 +170,7 @@ do { \
#endif #endif
void libcfs_run_upcall(char **argv); void libcfs_run_upcall(char **argv);
void libcfs_run_lbug_upcall(struct libcfs_debug_msg_data *); void libcfs_run_lbug_upcall(struct libcfs_debug_msg_data *msg);
void libcfs_debug_dumplog(void); void libcfs_debug_dumplog(void);
int libcfs_debug_init(unsigned long bufsize); int libcfs_debug_init(unsigned long bufsize);
int libcfs_debug_cleanup(void); int libcfs_debug_cleanup(void);
......
...@@ -62,9 +62,9 @@ ...@@ -62,9 +62,9 @@
struct cfs_wi_sched; struct cfs_wi_sched;
void cfs_wi_sched_destroy(struct cfs_wi_sched *); void cfs_wi_sched_destroy(struct cfs_wi_sched *sched);
int cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, int cpt, int cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, int cpt,
int nthrs, struct cfs_wi_sched **); int nthrs, struct cfs_wi_sched **sched_pp);
struct cfs_workitem; struct cfs_workitem;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment