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

staging: lustre: lnet: don't use bare unsigned

Turn all bare unsigned to unsigned int that were
detected by checkpatch in the LNet/libcfs layer.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1a252b13
...@@ -216,8 +216,8 @@ struct ksock_nal_data { ...@@ -216,8 +216,8 @@ struct ksock_nal_data {
time64_t ksnd_connd_starting_stamp;/* time stamp of the time64_t ksnd_connd_starting_stamp;/* time stamp of the
* last starting connd * last starting connd
*/ */
unsigned ksnd_connd_starting; /* # starting connd */ unsigned int ksnd_connd_starting; /* # starting connd */
unsigned ksnd_connd_running; /* # running connd */ unsigned int ksnd_connd_running; /* # running connd */
spinlock_t ksnd_connd_lock; /* serialise */ spinlock_t ksnd_connd_lock; /* serialise */
struct list_head ksnd_idle_noop_txs; /* list head for freed struct list_head ksnd_idle_noop_txs; /* list head for freed
......
...@@ -57,7 +57,7 @@ static int libcfs_param_debug_mb_set(const char *val, ...@@ -57,7 +57,7 @@ static int libcfs_param_debug_mb_set(const char *val,
const struct kernel_param *kp) const struct kernel_param *kp)
{ {
int rc; int rc;
unsigned num; unsigned int num;
rc = kstrtouint(val, 0, &num); rc = kstrtouint(val, 0, &num);
if (rc < 0) if (rc < 0)
......
...@@ -682,7 +682,7 @@ EXPORT_SYMBOL(cfs_hash_bd_peek_locked); ...@@ -682,7 +682,7 @@ EXPORT_SYMBOL(cfs_hash_bd_peek_locked);
static void static void
cfs_hash_multi_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_multi_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds,
unsigned n, int excl) unsigned int n, int excl)
{ {
struct cfs_hash_bucket *prev = NULL; struct cfs_hash_bucket *prev = NULL;
int i; int i;
...@@ -704,7 +704,7 @@ cfs_hash_multi_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -704,7 +704,7 @@ cfs_hash_multi_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds,
static void static void
cfs_hash_multi_bd_unlock(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_multi_bd_unlock(struct cfs_hash *hs, struct cfs_hash_bd *bds,
unsigned n, int excl) unsigned int n, int excl)
{ {
struct cfs_hash_bucket *prev = NULL; struct cfs_hash_bucket *prev = NULL;
int i; int i;
...@@ -719,10 +719,10 @@ cfs_hash_multi_bd_unlock(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -719,10 +719,10 @@ cfs_hash_multi_bd_unlock(struct cfs_hash *hs, struct cfs_hash_bd *bds,
static struct hlist_node * static struct hlist_node *
cfs_hash_multi_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_multi_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
unsigned n, const void *key) unsigned int n, const void *key)
{ {
struct hlist_node *ehnode; struct hlist_node *ehnode;
unsigned i; unsigned int i;
cfs_hash_for_each_bd(bds, n, i) { cfs_hash_for_each_bd(bds, n, i) {
ehnode = cfs_hash_bd_lookup_intent(hs, &bds[i], key, NULL, ehnode = cfs_hash_bd_lookup_intent(hs, &bds[i], key, NULL,
...@@ -735,12 +735,12 @@ cfs_hash_multi_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -735,12 +735,12 @@ cfs_hash_multi_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
static struct hlist_node * static struct hlist_node *
cfs_hash_multi_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_multi_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
unsigned n, const void *key, unsigned int n, const void *key,
struct hlist_node *hnode, int noref) struct hlist_node *hnode, int noref)
{ {
struct hlist_node *ehnode; struct hlist_node *ehnode;
int intent; int intent;
unsigned i; unsigned int i;
LASSERT(hnode); LASSERT(hnode);
intent = (!noref * CFS_HS_LOOKUP_MASK_REF) | CFS_HS_LOOKUP_IT_PEEK; intent = (!noref * CFS_HS_LOOKUP_MASK_REF) | CFS_HS_LOOKUP_IT_PEEK;
...@@ -766,7 +766,7 @@ cfs_hash_multi_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -766,7 +766,7 @@ cfs_hash_multi_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
static struct hlist_node * static struct hlist_node *
cfs_hash_multi_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_multi_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
unsigned n, const void *key, unsigned int n, const void *key,
struct hlist_node *hnode) struct hlist_node *hnode)
{ {
struct hlist_node *ehnode; struct hlist_node *ehnode;
...@@ -992,10 +992,10 @@ static inline void cfs_hash_depth_wi_cancel(struct cfs_hash *hs) {} ...@@ -992,10 +992,10 @@ static inline void cfs_hash_depth_wi_cancel(struct cfs_hash *hs) {}
#endif /* CFS_HASH_DEBUG_LEVEL >= CFS_HASH_DEBUG_1 */ #endif /* CFS_HASH_DEBUG_LEVEL >= CFS_HASH_DEBUG_1 */
struct cfs_hash * struct cfs_hash *
cfs_hash_create(char *name, unsigned cur_bits, unsigned max_bits, cfs_hash_create(char *name, unsigned int cur_bits, unsigned int max_bits,
unsigned bkt_bits, unsigned extra_bytes, unsigned int bkt_bits, unsigned int extra_bytes,
unsigned min_theta, unsigned max_theta, unsigned int min_theta, unsigned int max_theta,
struct cfs_hash_ops *ops, unsigned flags) struct cfs_hash_ops *ops, unsigned int flags)
{ {
struct cfs_hash *hs; struct cfs_hash *hs;
int len; int len;
...@@ -1664,7 +1664,7 @@ int ...@@ -1664,7 +1664,7 @@ int
cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t func, cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
void *data) void *data)
{ {
unsigned i = 0; unsigned int i = 0;
if (cfs_hash_with_no_lock(hs)) if (cfs_hash_with_no_lock(hs))
return -EOPNOTSUPP; return -EOPNOTSUPP;
...@@ -1684,7 +1684,7 @@ cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t func, ...@@ -1684,7 +1684,7 @@ cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
EXPORT_SYMBOL(cfs_hash_for_each_empty); EXPORT_SYMBOL(cfs_hash_for_each_empty);
void void
cfs_hash_hlist_for_each(struct cfs_hash *hs, unsigned hindex, cfs_hash_hlist_for_each(struct cfs_hash *hs, unsigned int hindex,
cfs_hash_for_each_cb_t func, void *data) cfs_hash_for_each_cb_t func, void *data)
{ {
struct hlist_head *hhead; struct hlist_head *hhead;
......
...@@ -222,8 +222,8 @@ EXPORT_SYMBOL(cfs_gettok); ...@@ -222,8 +222,8 @@ EXPORT_SYMBOL(cfs_gettok);
* \retval 0 otherwise * \retval 0 otherwise
*/ */
int int
cfs_str2num_check(char *str, int nob, unsigned *num, cfs_str2num_check(char *str, int nob, unsigned int *num,
unsigned min, unsigned max) unsigned int min, unsigned int max)
{ {
bool all_numbers = true; bool all_numbers = true;
char *endp, cache; char *endp, cache;
...@@ -273,7 +273,7 @@ EXPORT_SYMBOL(cfs_str2num_check); ...@@ -273,7 +273,7 @@ EXPORT_SYMBOL(cfs_str2num_check);
* -ENOMEM will be returned. * -ENOMEM will be returned.
*/ */
static int static int
cfs_range_expr_parse(struct cfs_lstr *src, unsigned min, unsigned max, cfs_range_expr_parse(struct cfs_lstr *src, unsigned int min, unsigned int max,
int bracketed, struct cfs_range_expr **expr) int bracketed, struct cfs_range_expr **expr)
{ {
struct cfs_range_expr *re; struct cfs_range_expr *re;
...@@ -501,7 +501,7 @@ EXPORT_SYMBOL(cfs_expr_list_free); ...@@ -501,7 +501,7 @@ EXPORT_SYMBOL(cfs_expr_list_free);
* \retval -errno otherwise * \retval -errno otherwise
*/ */
int int
cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max, cfs_expr_list_parse(char *str, int len, unsigned int min, unsigned int max,
struct cfs_expr_list **elpp) struct cfs_expr_list **elpp)
{ {
struct cfs_expr_list *expr_list; struct cfs_expr_list *expr_list;
......
...@@ -678,9 +678,9 @@ cfs_cpt_choose_ncpus(struct cfs_cpt_table *cptab, int cpt, ...@@ -678,9 +678,9 @@ cfs_cpt_choose_ncpus(struct cfs_cpt_table *cptab, int cpt,
static unsigned int static unsigned int
cfs_cpt_num_estimate(void) cfs_cpt_num_estimate(void)
{ {
unsigned nnode = num_online_nodes(); unsigned int nnode = num_online_nodes();
unsigned ncpu = num_online_cpus(); unsigned int ncpu = num_online_cpus();
unsigned ncpt; unsigned int ncpt;
if (ncpu <= CPT_WEIGHT_MIN) { if (ncpu <= CPT_WEIGHT_MIN) {
ncpt = 1; ncpt = 1;
......
...@@ -193,7 +193,7 @@ add_nidrange(const struct cfs_lstr *src, ...@@ -193,7 +193,7 @@ add_nidrange(const struct cfs_lstr *src,
struct netstrfns *nf; struct netstrfns *nf;
struct nidrange *nr; struct nidrange *nr;
int endlen; int endlen;
unsigned netnum; unsigned int netnum;
if (src->ls_len >= LNET_NIDSTR_SIZE) if (src->ls_len >= LNET_NIDSTR_SIZE)
return NULL; return NULL;
......
...@@ -315,7 +315,7 @@ lst_group_update_ioctl(lstio_group_update_args_t *args) ...@@ -315,7 +315,7 @@ lst_group_update_ioctl(lstio_group_update_args_t *args)
static int static int
lst_nodes_add_ioctl(lstio_group_nodes_args_t *args) lst_nodes_add_ioctl(lstio_group_nodes_args_t *args)
{ {
unsigned feats; unsigned int feats;
int rc; int rc;
char *name; char *name;
......
...@@ -86,7 +86,7 @@ lstcon_rpc_done(struct srpc_client_rpc *rpc) ...@@ -86,7 +86,7 @@ lstcon_rpc_done(struct srpc_client_rpc *rpc)
} }
static int static int
lstcon_rpc_init(struct lstcon_node *nd, int service, unsigned feats, lstcon_rpc_init(struct lstcon_node *nd, int service, unsigned int feats,
int bulk_npg, int bulk_len, int embedded, struct lstcon_rpc *crpc) int bulk_npg, int bulk_len, int embedded, struct lstcon_rpc *crpc)
{ {
crpc->crp_rpc = sfw_create_rpc(nd->nd_id, service, crpc->crp_rpc = sfw_create_rpc(nd->nd_id, service,
...@@ -111,7 +111,7 @@ lstcon_rpc_init(struct lstcon_node *nd, int service, unsigned feats, ...@@ -111,7 +111,7 @@ lstcon_rpc_init(struct lstcon_node *nd, int service, unsigned feats,
} }
static int static int
lstcon_rpc_prep(struct lstcon_node *nd, int service, unsigned feats, lstcon_rpc_prep(struct lstcon_node *nd, int service, unsigned int feats,
int bulk_npg, int bulk_len, struct lstcon_rpc **crpcpp) int bulk_npg, int bulk_len, struct lstcon_rpc **crpcpp)
{ {
struct lstcon_rpc *crpc = NULL; struct lstcon_rpc *crpc = NULL;
...@@ -589,7 +589,7 @@ lstcon_rpc_trans_destroy(struct lstcon_rpc_trans *trans) ...@@ -589,7 +589,7 @@ lstcon_rpc_trans_destroy(struct lstcon_rpc_trans *trans)
int int
lstcon_sesrpc_prep(struct lstcon_node *nd, int transop, lstcon_sesrpc_prep(struct lstcon_node *nd, int transop,
unsigned feats, struct lstcon_rpc **crpc) unsigned int feats, struct lstcon_rpc **crpc)
{ {
struct srpc_mksn_reqst *msrq; struct srpc_mksn_reqst *msrq;
struct srpc_rmsn_reqst *rsrq; struct srpc_rmsn_reqst *rsrq;
...@@ -627,7 +627,8 @@ lstcon_sesrpc_prep(struct lstcon_node *nd, int transop, ...@@ -627,7 +627,8 @@ lstcon_sesrpc_prep(struct lstcon_node *nd, int transop,
} }
int int
lstcon_dbgrpc_prep(struct lstcon_node *nd, unsigned feats, struct lstcon_rpc **crpc) lstcon_dbgrpc_prep(struct lstcon_node *nd, unsigned int feats,
struct lstcon_rpc **crpc)
{ {
struct srpc_debug_reqst *drq; struct srpc_debug_reqst *drq;
int rc; int rc;
...@@ -645,7 +646,7 @@ lstcon_dbgrpc_prep(struct lstcon_node *nd, unsigned feats, struct lstcon_rpc **c ...@@ -645,7 +646,7 @@ lstcon_dbgrpc_prep(struct lstcon_node *nd, unsigned feats, struct lstcon_rpc **c
} }
int int
lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned feats, lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned int feats,
struct lstcon_tsb_hdr *tsb, struct lstcon_rpc **crpc) struct lstcon_tsb_hdr *tsb, struct lstcon_rpc **crpc)
{ {
struct lstcon_batch *batch; struct lstcon_batch *batch;
...@@ -678,7 +679,8 @@ lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned feats, ...@@ -678,7 +679,8 @@ lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned feats,
} }
int int
lstcon_statrpc_prep(struct lstcon_node *nd, unsigned feats, struct lstcon_rpc **crpc) lstcon_statrpc_prep(struct lstcon_node *nd, unsigned int feats,
struct lstcon_rpc **crpc)
{ {
struct srpc_stat_reqst *srq; struct srpc_stat_reqst *srq;
int rc; int rc;
...@@ -803,7 +805,7 @@ lstcon_bulkrpc_v1_prep(lst_test_bulk_param_t *param, bool is_client, ...@@ -803,7 +805,7 @@ lstcon_bulkrpc_v1_prep(lst_test_bulk_param_t *param, bool is_client,
} }
int int
lstcon_testrpc_prep(struct lstcon_node *nd, int transop, unsigned feats, lstcon_testrpc_prep(struct lstcon_node *nd, int transop, unsigned int feats,
struct lstcon_test *test, struct lstcon_rpc **crpc) struct lstcon_test *test, struct lstcon_rpc **crpc)
{ {
struct lstcon_group *sgrp = test->tes_src_grp; struct lstcon_group *sgrp = test->tes_src_grp;
...@@ -1086,7 +1088,7 @@ lstcon_rpc_trans_ndlist(struct list_head *ndlist, ...@@ -1086,7 +1088,7 @@ lstcon_rpc_trans_ndlist(struct list_head *ndlist,
struct lstcon_ndlink *ndl; struct lstcon_ndlink *ndl;
struct lstcon_node *nd; struct lstcon_node *nd;
struct lstcon_rpc *rpc; struct lstcon_rpc *rpc;
unsigned feats; unsigned int feats;
int rc; int rc;
/* Creating session RPG for list of nodes */ /* Creating session RPG for list of nodes */
......
...@@ -78,8 +78,8 @@ struct lstcon_rpc_trans { ...@@ -78,8 +78,8 @@ struct lstcon_rpc_trans {
struct list_head tas_olink; /* link chain on owner list */ struct list_head tas_olink; /* link chain on owner list */
struct list_head tas_link; /* link chain on global list */ struct list_head tas_link; /* link chain on global list */
int tas_opc; /* operation code of transaction */ int tas_opc; /* operation code of transaction */
unsigned tas_feats_updated; /* features mask is uptodate */ unsigned int tas_feats_updated; /* features mask is uptodate */
unsigned tas_features; /* test features mask */ unsigned int tas_features; /* test features mask */
wait_queue_head_t tas_waitq; /* wait queue head */ wait_queue_head_t tas_waitq; /* wait queue head */
atomic_t tas_remaining; /* # of un-scheduled rpcs */ atomic_t tas_remaining; /* # of un-scheduled rpcs */
struct list_head tas_rpcs_list; /* queued requests */ struct list_head tas_rpcs_list; /* queued requests */
...@@ -106,14 +106,16 @@ typedef int (*lstcon_rpc_readent_func_t)(int, struct srpc_msg *, ...@@ -106,14 +106,16 @@ typedef int (*lstcon_rpc_readent_func_t)(int, struct srpc_msg *,
lstcon_rpc_ent_t __user *); lstcon_rpc_ent_t __user *);
int lstcon_sesrpc_prep(struct lstcon_node *nd, int transop, int lstcon_sesrpc_prep(struct lstcon_node *nd, int transop,
unsigned version, struct lstcon_rpc **crpc); unsigned int version, struct lstcon_rpc **crpc);
int lstcon_dbgrpc_prep(struct lstcon_node *nd, int lstcon_dbgrpc_prep(struct lstcon_node *nd,
unsigned version, struct lstcon_rpc **crpc); unsigned int version, struct lstcon_rpc **crpc);
int lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned version, int lstcon_batrpc_prep(struct lstcon_node *nd, int transop,
struct lstcon_tsb_hdr *tsb, struct lstcon_rpc **crpc); unsigned int version, struct lstcon_tsb_hdr *tsb,
int lstcon_testrpc_prep(struct lstcon_node *nd, int transop, unsigned version, struct lstcon_rpc **crpc);
struct lstcon_test *test, struct lstcon_rpc **crpc); int lstcon_testrpc_prep(struct lstcon_node *nd, int transop,
int lstcon_statrpc_prep(struct lstcon_node *nd, unsigned version, unsigned int version, struct lstcon_test *test,
struct lstcon_rpc **crpc);
int lstcon_statrpc_prep(struct lstcon_node *nd, unsigned int version,
struct lstcon_rpc **crpc); struct lstcon_rpc **crpc);
void lstcon_rpc_put(struct lstcon_rpc *crpc); void lstcon_rpc_put(struct lstcon_rpc *crpc);
int lstcon_rpc_trans_prep(struct list_head *translist, int lstcon_rpc_trans_prep(struct list_head *translist,
......
...@@ -397,7 +397,8 @@ lstcon_sesrpc_readent(int transop, struct srpc_msg *msg, ...@@ -397,7 +397,8 @@ lstcon_sesrpc_readent(int transop, struct srpc_msg *msg,
static int static int
lstcon_group_nodes_add(struct lstcon_group *grp, lstcon_group_nodes_add(struct lstcon_group *grp,
int count, lnet_process_id_t __user *ids_up, int count, lnet_process_id_t __user *ids_up,
unsigned *featp, struct list_head __user *result_up) unsigned int *featp,
struct list_head __user *result_up)
{ {
struct lstcon_rpc_trans *trans; struct lstcon_rpc_trans *trans;
struct lstcon_ndlink *ndl; struct lstcon_ndlink *ndl;
...@@ -542,7 +543,8 @@ lstcon_group_add(char *name) ...@@ -542,7 +543,8 @@ lstcon_group_add(char *name)
int int
lstcon_nodes_add(char *name, int count, lnet_process_id_t __user *ids_up, lstcon_nodes_add(char *name, int count, lnet_process_id_t __user *ids_up,
unsigned *featp, struct list_head __user *result_up) unsigned int *featp,
struct list_head __user *result_up)
{ {
struct lstcon_group *grp; struct lstcon_group *grp;
int rc; int rc;
...@@ -1702,7 +1704,7 @@ lstcon_new_session_id(lst_sid_t *sid) ...@@ -1702,7 +1704,7 @@ lstcon_new_session_id(lst_sid_t *sid)
} }
int int
lstcon_session_new(char *name, int key, unsigned feats, lstcon_session_new(char *name, int key, unsigned int feats,
int timeout, int force, lst_sid_t __user *sid_up) int timeout, int force, lst_sid_t __user *sid_up)
{ {
int rc = 0; int rc = 0;
...@@ -1868,7 +1870,7 @@ lstcon_session_end(void) ...@@ -1868,7 +1870,7 @@ lstcon_session_end(void)
} }
int int
lstcon_session_feats_check(unsigned feats) lstcon_session_feats_check(unsigned int feats)
{ {
int rc = 0; int rc = 0;
......
...@@ -144,13 +144,13 @@ struct lstcon_session { ...@@ -144,13 +144,13 @@ struct lstcon_session {
int ses_timeout; /* timeout in seconds */ int ses_timeout; /* timeout in seconds */
time64_t ses_laststamp; /* last operation stamp (seconds) time64_t ses_laststamp; /* last operation stamp (seconds)
*/ */
unsigned ses_features; /* tests features of the session unsigned int ses_features; /* tests features of the session
*/ */
unsigned ses_feats_updated:1; /* features are synced with unsigned int ses_feats_updated:1; /* features are synced with
* remote test nodes */ * remote test nodes */
unsigned ses_force:1; /* force creating */ unsigned int ses_force:1; /* force creating */
unsigned ses_shutdown:1; /* session is shutting down */ unsigned int ses_shutdown:1; /* session is shutting down */
unsigned ses_expired:1; /* console is timedout */ unsigned int ses_expired:1; /* console is timedout */
__u64 ses_id_cookie; /* batch id cookie */ __u64 ses_id_cookie; /* batch id cookie */
char ses_name[LST_NAME_SIZE];/* session name */ char ses_name[LST_NAME_SIZE];/* session name */
struct lstcon_rpc_trans *ses_ping; /* session pinger */ struct lstcon_rpc_trans *ses_ping; /* session pinger */
...@@ -188,14 +188,14 @@ int lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr); ...@@ -188,14 +188,14 @@ int lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr);
int lstcon_console_init(void); int lstcon_console_init(void);
int lstcon_console_fini(void); int lstcon_console_fini(void);
int lstcon_session_match(lst_sid_t sid); int lstcon_session_match(lst_sid_t sid);
int lstcon_session_new(char *name, int key, unsigned version, int lstcon_session_new(char *name, int key, unsigned int version,
int timeout, int flags, lst_sid_t __user *sid_up); int timeout, int flags, lst_sid_t __user *sid_up);
int lstcon_session_info(lst_sid_t __user *sid_up, int __user *key, int lstcon_session_info(lst_sid_t __user *sid_up, int __user *key,
unsigned __user *verp, lstcon_ndlist_ent_t __user *entp, unsigned __user *verp, lstcon_ndlist_ent_t __user *entp,
char __user *name_up, int len); char __user *name_up, int len);
int lstcon_session_end(void); int lstcon_session_end(void);
int lstcon_session_debug(int timeout, struct list_head __user *result_up); int lstcon_session_debug(int timeout, struct list_head __user *result_up);
int lstcon_session_feats_check(unsigned feats); int lstcon_session_feats_check(unsigned int feats);
int lstcon_batch_debug(int timeout, char *name, int lstcon_batch_debug(int timeout, char *name,
int client, struct list_head __user *result_up); int client, struct list_head __user *result_up);
int lstcon_group_debug(int timeout, char *name, int lstcon_group_debug(int timeout, char *name,
...@@ -207,7 +207,7 @@ int lstcon_group_del(char *name); ...@@ -207,7 +207,7 @@ int lstcon_group_del(char *name);
int lstcon_group_clean(char *name, int args); int lstcon_group_clean(char *name, int args);
int lstcon_group_refresh(char *name, struct list_head __user *result_up); int lstcon_group_refresh(char *name, struct list_head __user *result_up);
int lstcon_nodes_add(char *name, int nnd, lnet_process_id_t __user *nds_up, int lstcon_nodes_add(char *name, int nnd, lnet_process_id_t __user *nds_up,
unsigned *featp, struct list_head __user *result_up); unsigned int *featp, struct list_head __user *result_up);
int lstcon_nodes_remove(char *name, int nnd, lnet_process_id_t __user *nds_up, int lstcon_nodes_remove(char *name, int nnd, lnet_process_id_t __user *nds_up,
struct list_head __user *result_up); struct list_head __user *result_up);
int lstcon_group_info(char *name, lstcon_ndlist_ent_t __user *gent_up, int lstcon_group_info(char *name, lstcon_ndlist_ent_t __user *gent_up,
......
...@@ -254,7 +254,7 @@ sfw_session_expired(void *data) ...@@ -254,7 +254,7 @@ sfw_session_expired(void *data)
static inline void static inline void
sfw_init_session(struct sfw_session *sn, lst_sid_t sid, sfw_init_session(struct sfw_session *sn, lst_sid_t sid,
unsigned features, const char *name) unsigned int features, const char *name)
{ {
struct stt_timer *timer = &sn->sn_timer; struct stt_timer *timer = &sn->sn_timer;
...@@ -897,7 +897,7 @@ sfw_test_rpc_done(struct srpc_client_rpc *rpc) ...@@ -897,7 +897,7 @@ sfw_test_rpc_done(struct srpc_client_rpc *rpc)
int int
sfw_create_test_rpc(struct sfw_test_unit *tsu, lnet_process_id_t peer, sfw_create_test_rpc(struct sfw_test_unit *tsu, lnet_process_id_t peer,
unsigned features, int nblk, int blklen, unsigned int features, int nblk, int blklen,
struct srpc_client_rpc **rpcpp) struct srpc_client_rpc **rpcpp)
{ {
struct srpc_client_rpc *rpc = NULL; struct srpc_client_rpc *rpc = NULL;
...@@ -1225,7 +1225,7 @@ sfw_handle_server_rpc(struct srpc_server_rpc *rpc) ...@@ -1225,7 +1225,7 @@ sfw_handle_server_rpc(struct srpc_server_rpc *rpc)
struct srpc_service *sv = rpc->srpc_scd->scd_svc; struct srpc_service *sv = rpc->srpc_scd->scd_svc;
struct srpc_msg *reply = &rpc->srpc_replymsg; struct srpc_msg *reply = &rpc->srpc_replymsg;
struct srpc_msg *request = &rpc->srpc_reqstbuf->buf_msg; struct srpc_msg *request = &rpc->srpc_reqstbuf->buf_msg;
unsigned features = LST_FEATS_MASK; unsigned int features = LST_FEATS_MASK;
int rc = 0; int rc = 0;
LASSERT(!sfw_data.fw_active_srpc); LASSERT(!sfw_data.fw_active_srpc);
...@@ -1375,7 +1375,7 @@ sfw_bulk_ready(struct srpc_server_rpc *rpc, int status) ...@@ -1375,7 +1375,7 @@ sfw_bulk_ready(struct srpc_server_rpc *rpc, int status)
struct srpc_client_rpc * struct srpc_client_rpc *
sfw_create_rpc(lnet_process_id_t peer, int service, sfw_create_rpc(lnet_process_id_t peer, int service,
unsigned features, int nbulkiov, int bulklen, unsigned int features, int nbulkiov, int bulklen,
void (*done)(struct srpc_client_rpc *), void *priv) void (*done)(struct srpc_client_rpc *), void *priv)
{ {
struct srpc_client_rpc *rpc = NULL; struct srpc_client_rpc *rpc = NULL;
......
...@@ -159,7 +159,7 @@ ping_client_done_rpc(struct sfw_test_unit *tsu, struct srpc_client_rpc *rpc) ...@@ -159,7 +159,7 @@ ping_client_done_rpc(struct sfw_test_unit *tsu, struct srpc_client_rpc *rpc)
ktime_get_real_ts64(&ts); ktime_get_real_ts64(&ts);
CDEBUG(D_NET, "%d reply in %u usec\n", reply->pnr_seq, CDEBUG(D_NET, "%d reply in %u usec\n", reply->pnr_seq,
(unsigned)((ts.tv_sec - reqst->pnr_time_sec) * 1000000 + (unsigned int)((ts.tv_sec - reqst->pnr_time_sec) * 1000000 +
(ts.tv_nsec / NSEC_PER_USEC - reqst->pnr_time_usec))); (ts.tv_nsec / NSEC_PER_USEC - reqst->pnr_time_usec)));
} }
......
...@@ -410,10 +410,10 @@ struct sfw_test_case { ...@@ -410,10 +410,10 @@ struct sfw_test_case {
struct srpc_client_rpc * struct srpc_client_rpc *
sfw_create_rpc(lnet_process_id_t peer, int service, sfw_create_rpc(lnet_process_id_t peer, int service,
unsigned features, int nbulkiov, int bulklen, unsigned int features, int nbulkiov, int bulklen,
void (*done)(struct srpc_client_rpc *), void *priv); void (*done)(struct srpc_client_rpc *), void *priv);
int sfw_create_test_rpc(struct sfw_test_unit *tsu, int sfw_create_test_rpc(struct sfw_test_unit *tsu,
lnet_process_id_t peer, unsigned features, lnet_process_id_t peer, unsigned int features,
int nblk, int blklen, struct srpc_client_rpc **rpc); int nblk, int blklen, struct srpc_client_rpc **rpc);
void sfw_abort_rpc(struct srpc_client_rpc *rpc); void sfw_abort_rpc(struct srpc_client_rpc *rpc);
void sfw_post_rpc(struct srpc_client_rpc *rpc); void sfw_post_rpc(struct srpc_client_rpc *rpc);
......
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