aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2016-12-06 23:57:38 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-12-07 10:30:23 -0500
commit8dde06854c2e6487bfeca06608a998f79412cd4f (patch)
tree6cea0fb7e3a40a8edfb147f2d7d3df568d91be3a
parent6b02ac34d3386a6d001869aec892f0fdf7f0dffa (diff)
staging/lustre: Convert all bare unsigned to unsigned int
Highlighted by relatively new checkpatch test, warnings like: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/include/linux/lnet/lnetst.h6
-rw-r--r--drivers/staging/lustre/lustre/include/lprocfs_status.h3
-rw-r--r--drivers/staging/lustre/lustre/ldlm/ldlm_resource.c8
-rw-r--r--drivers/staging/lustre/lustre/llite/llite_nfs.c2
-rw-r--r--drivers/staging/lustre/lustre/llite/rw26.c4
-rw-r--r--drivers/staging/lustre/lustre/llite/xattr_cache.c6
-rw-r--r--drivers/staging/lustre/lustre/lov/lov_pool.c3
-rw-r--r--drivers/staging/lustre/lustre/obdclass/lprocfs_status.c3
-rw-r--r--drivers/staging/lustre/lustre/obdclass/lu_object.c6
-rw-r--r--drivers/staging/lustre/lustre/obdclass/obd_config.c4
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_lock.c2
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_quota.c4
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_request.c6
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/connection.c4
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c4
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/service.c6
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/wiretest.c92
17 files changed, 83 insertions, 80 deletions
diff --git a/drivers/staging/lustre/include/linux/lnet/lnetst.h b/drivers/staging/lustre/include/linux/lnet/lnetst.h
index 78f825d208c0..8a84888635ff 100644
--- a/drivers/staging/lustre/include/linux/lnet/lnetst.h
+++ b/drivers/staging/lustre/include/linux/lnet/lnetst.h
@@ -244,7 +244,7 @@ typedef struct {
244 int lstio_ses_timeout; /* IN: session timeout */ 244 int lstio_ses_timeout; /* IN: session timeout */
245 int lstio_ses_force; /* IN: force create ? */ 245 int lstio_ses_force; /* IN: force create ? */
246 /** IN: session features */ 246 /** IN: session features */
247 unsigned lstio_ses_feats; 247 unsigned int lstio_ses_feats;
248 lst_sid_t __user *lstio_ses_idp; /* OUT: session id */ 248 lst_sid_t __user *lstio_ses_idp; /* OUT: session id */
249 int lstio_ses_nmlen; /* IN: name length */ 249 int lstio_ses_nmlen; /* IN: name length */
250 char __user *lstio_ses_namep; /* IN: session name */ 250 char __user *lstio_ses_namep; /* IN: session name */
@@ -255,7 +255,7 @@ typedef struct {
255 lst_sid_t __user *lstio_ses_idp; /* OUT: session id */ 255 lst_sid_t __user *lstio_ses_idp; /* OUT: session id */
256 int __user *lstio_ses_keyp; /* OUT: local key */ 256 int __user *lstio_ses_keyp; /* OUT: local key */
257 /** OUT: session features */ 257 /** OUT: session features */
258 unsigned __user *lstio_ses_featp; 258 unsigned int __user *lstio_ses_featp;
259 lstcon_ndlist_ent_t __user *lstio_ses_ndinfo; /* OUT: */ 259 lstcon_ndlist_ent_t __user *lstio_ses_ndinfo; /* OUT: */
260 int lstio_ses_nmlen; /* IN: name length */ 260 int lstio_ses_nmlen; /* IN: name length */
261 char __user *lstio_ses_namep; /* OUT: session name */ 261 char __user *lstio_ses_namep; /* OUT: session name */
@@ -328,7 +328,7 @@ typedef struct {
328 char __user *lstio_grp_namep; /* IN: group name */ 328 char __user *lstio_grp_namep; /* IN: group name */
329 int lstio_grp_count; /* IN: # of nodes */ 329 int lstio_grp_count; /* IN: # of nodes */
330 /** OUT: session features */ 330 /** OUT: session features */
331 unsigned __user *lstio_grp_featp; 331 unsigned int __user *lstio_grp_featp;
332 lnet_process_id_t __user *lstio_grp_idsp; /* IN: nodes */ 332 lnet_process_id_t __user *lstio_grp_idsp; /* IN: nodes */
333 struct list_head __user *lstio_grp_resultp; /* OUT: list head of 333 struct list_head __user *lstio_grp_resultp; /* OUT: list head of
334 result buffer */ 334 result buffer */
diff --git a/drivers/staging/lustre/lustre/include/lprocfs_status.h b/drivers/staging/lustre/lustre/include/lprocfs_status.h
index adef2d25c849..62753dae0bfa 100644
--- a/drivers/staging/lustre/lustre/include/lprocfs_status.h
+++ b/drivers/staging/lustre/lustre/include/lprocfs_status.h
@@ -542,7 +542,8 @@ lprocfs_alloc_stats(unsigned int num, enum lprocfs_stats_flags flags);
542void lprocfs_clear_stats(struct lprocfs_stats *stats); 542void lprocfs_clear_stats(struct lprocfs_stats *stats);
543void lprocfs_free_stats(struct lprocfs_stats **stats); 543void lprocfs_free_stats(struct lprocfs_stats **stats);
544void lprocfs_counter_init(struct lprocfs_stats *stats, int index, 544void lprocfs_counter_init(struct lprocfs_stats *stats, int index,
545 unsigned conf, const char *name, const char *units); 545 unsigned int conf, const char *name,
546 const char *units);
546struct obd_export; 547struct obd_export;
547int lprocfs_exp_cleanup(struct obd_export *exp); 548int lprocfs_exp_cleanup(struct obd_export *exp);
548struct dentry *ldebugfs_add_simple(struct dentry *root, 549struct dentry *ldebugfs_add_simple(struct dentry *root,
diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
index 1095331cc290..b22f5bae7201 100644
--- a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
@@ -445,8 +445,8 @@ static struct ldlm_resource *ldlm_resource_getref(struct ldlm_resource *res)
445 return res; 445 return res;
446} 446}
447 447
448static unsigned ldlm_res_hop_hash(struct cfs_hash *hs, 448static unsigned int ldlm_res_hop_hash(struct cfs_hash *hs,
449 const void *key, unsigned mask) 449 const void *key, unsigned int mask)
450{ 450{
451 const struct ldlm_res_id *id = key; 451 const struct ldlm_res_id *id = key;
452 unsigned int val = 0; 452 unsigned int val = 0;
@@ -457,8 +457,8 @@ static unsigned ldlm_res_hop_hash(struct cfs_hash *hs,
457 return val & mask; 457 return val & mask;
458} 458}
459 459
460static unsigned ldlm_res_hop_fid_hash(struct cfs_hash *hs, 460static unsigned int ldlm_res_hop_fid_hash(struct cfs_hash *hs,
461 const void *key, unsigned mask) 461 const void *key, unsigned int mask)
462{ 462{
463 const struct ldlm_res_id *id = key; 463 const struct ldlm_res_id *id = key;
464 struct lu_fid fid; 464 struct lu_fid fid;
diff --git a/drivers/staging/lustre/lustre/llite/llite_nfs.c b/drivers/staging/lustre/lustre/llite/llite_nfs.c
index 709230571b4b..c63236580b0f 100644
--- a/drivers/staging/lustre/lustre/llite/llite_nfs.c
+++ b/drivers/staging/lustre/lustre/llite/llite_nfs.c
@@ -226,7 +226,7 @@ static int ll_encode_fh(struct inode *inode, __u32 *fh, int *plen,
226 226
227static int ll_nfs_get_name_filldir(struct dir_context *ctx, const char *name, 227static int ll_nfs_get_name_filldir(struct dir_context *ctx, const char *name,
228 int namelen, loff_t hash, u64 ino, 228 int namelen, loff_t hash, u64 ino,
229 unsigned type) 229 unsigned int type)
230{ 230{
231 /* It is hack to access lde_fid for comparison with lgd_fid. 231 /* It is hack to access lde_fid for comparison with lgd_fid.
232 * So the input 'name' must be part of the 'lu_dirent'. 232 * So the input 'name' must be part of the 'lu_dirent'.
diff --git a/drivers/staging/lustre/lustre/llite/rw26.c b/drivers/staging/lustre/lustre/llite/rw26.c
index c1b74096d46e..21e06e5b514e 100644
--- a/drivers/staging/lustre/lustre/llite/rw26.c
+++ b/drivers/staging/lustre/lustre/llite/rw26.c
@@ -460,7 +460,7 @@ static int ll_prepare_partial_page(const struct lu_env *env, struct cl_io *io,
460} 460}
461 461
462static int ll_write_begin(struct file *file, struct address_space *mapping, 462static int ll_write_begin(struct file *file, struct address_space *mapping,
463 loff_t pos, unsigned len, unsigned flags, 463 loff_t pos, unsigned int len, unsigned int flags,
464 struct page **pagep, void **fsdata) 464 struct page **pagep, void **fsdata)
465{ 465{
466 struct ll_cl_context *lcc; 466 struct ll_cl_context *lcc;
@@ -577,7 +577,7 @@ static int ll_write_end(struct file *file, struct address_space *mapping,
577 struct cl_io *io; 577 struct cl_io *io;
578 struct vvp_io *vio; 578 struct vvp_io *vio;
579 struct cl_page *page; 579 struct cl_page *page;
580 unsigned from = pos & (PAGE_SIZE - 1); 580 unsigned int from = pos & (PAGE_SIZE - 1);
581 bool unplug = false; 581 bool unplug = false;
582 int result = 0; 582 int result = 0;
583 583
diff --git a/drivers/staging/lustre/lustre/llite/xattr_cache.c b/drivers/staging/lustre/lustre/llite/xattr_cache.c
index 198b0517a9bf..38f75f6aa887 100644
--- a/drivers/staging/lustre/lustre/llite/xattr_cache.c
+++ b/drivers/staging/lustre/lustre/llite/xattr_cache.c
@@ -26,8 +26,8 @@ struct ll_xattr_entry {
26 */ 26 */
27 char *xe_name; /* xattr name, \0-terminated */ 27 char *xe_name; /* xattr name, \0-terminated */
28 char *xe_value; /* xattr value */ 28 char *xe_value; /* xattr value */
29 unsigned xe_namelen; /* strlen(xe_name) + 1 */ 29 unsigned int xe_namelen; /* strlen(xe_name) + 1 */
30 unsigned xe_vallen; /* xattr value length */ 30 unsigned int xe_vallen; /* xattr value length */
31}; 31};
32 32
33static struct kmem_cache *xattr_kmem; 33static struct kmem_cache *xattr_kmem;
@@ -104,7 +104,7 @@ static int ll_xattr_cache_find(struct list_head *cache,
104static int ll_xattr_cache_add(struct list_head *cache, 104static int ll_xattr_cache_add(struct list_head *cache,
105 const char *xattr_name, 105 const char *xattr_name,
106 const char *xattr_val, 106 const char *xattr_val,
107 unsigned xattr_val_len) 107 unsigned int xattr_val_len)
108{ 108{
109 struct ll_xattr_entry *xattr; 109 struct ll_xattr_entry *xattr;
110 110
diff --git a/drivers/staging/lustre/lustre/lov/lov_pool.c b/drivers/staging/lustre/lustre/lov/lov_pool.c
index f8c8a361ef79..7daa8671fdc3 100644
--- a/drivers/staging/lustre/lustre/lov/lov_pool.c
+++ b/drivers/staging/lustre/lustre/lov/lov_pool.c
@@ -81,7 +81,8 @@ static void lov_pool_putref_locked(struct pool_desc *pool)
81 * Chapter 6.4. 81 * Chapter 6.4.
82 * Addison Wesley, 1973 82 * Addison Wesley, 1973
83 */ 83 */
84static __u32 pool_hashfn(struct cfs_hash *hash_body, const void *key, unsigned mask) 84static __u32 pool_hashfn(struct cfs_hash *hash_body, const void *key,
85 unsigned int mask)
85{ 86{
86 int i; 87 int i;
87 __u32 result; 88 __u32 result;
diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
index 2f2e8fcb18d3..2c99717b0aba 100644
--- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
@@ -1289,7 +1289,8 @@ int ldebugfs_register_stats(struct dentry *parent, const char *name,
1289EXPORT_SYMBOL_GPL(ldebugfs_register_stats); 1289EXPORT_SYMBOL_GPL(ldebugfs_register_stats);
1290 1290
1291void lprocfs_counter_init(struct lprocfs_stats *stats, int index, 1291void lprocfs_counter_init(struct lprocfs_stats *stats, int index,
1292 unsigned conf, const char *name, const char *units) 1292 unsigned int conf, const char *name,
1293 const char *units)
1293{ 1294{
1294 struct lprocfs_counter_header *header; 1295 struct lprocfs_counter_header *header;
1295 struct lprocfs_counter *percpu_cntr; 1296 struct lprocfs_counter *percpu_cntr;
diff --git a/drivers/staging/lustre/lustre/obdclass/lu_object.c b/drivers/staging/lustre/lustre/obdclass/lu_object.c
index 80e09846e3be..7971562a3efd 100644
--- a/drivers/staging/lustre/lustre/obdclass/lu_object.c
+++ b/drivers/staging/lustre/lustre/obdclass/lu_object.c
@@ -914,8 +914,8 @@ static unsigned long lu_htable_order(struct lu_device *top)
914 return clamp_t(typeof(bits), bits, LU_SITE_BITS_MIN, bits_max); 914 return clamp_t(typeof(bits), bits, LU_SITE_BITS_MIN, bits_max);
915} 915}
916 916
917static unsigned lu_obj_hop_hash(struct cfs_hash *hs, 917static unsigned int lu_obj_hop_hash(struct cfs_hash *hs,
918 const void *key, unsigned mask) 918 const void *key, unsigned int mask)
919{ 919{
920 struct lu_fid *fid = (struct lu_fid *)key; 920 struct lu_fid *fid = (struct lu_fid *)key;
921 __u32 hash; 921 __u32 hash;
@@ -1324,7 +1324,7 @@ static atomic_t lu_key_initing_cnt = ATOMIC_INIT(0);
1324 * lu_context_refill(). No locking is provided, as initialization and shutdown 1324 * lu_context_refill(). No locking is provided, as initialization and shutdown
1325 * are supposed to be externally serialized. 1325 * are supposed to be externally serialized.
1326 */ 1326 */
1327static unsigned key_set_version; 1327static unsigned int key_set_version;
1328 1328
1329/** 1329/**
1330 * Register new key. 1330 * Register new key.
diff --git a/drivers/staging/lustre/lustre/obdclass/obd_config.c b/drivers/staging/lustre/lustre/obdclass/obd_config.c
index 0a55d79b1d65..9ca84c7d49de 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_config.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_config.c
@@ -1450,8 +1450,8 @@ EXPORT_SYMBOL(class_manual_cleanup);
1450 * uuid<->export lustre hash operations 1450 * uuid<->export lustre hash operations
1451 */ 1451 */
1452 1452
1453static unsigned 1453static unsigned int
1454uuid_hash(struct cfs_hash *hs, const void *key, unsigned mask) 1454uuid_hash(struct cfs_hash *hs, const void *key, unsigned int mask)
1455{ 1455{
1456 return cfs_hash_djb2_hash(((struct obd_uuid *)key)->uuid, 1456 return cfs_hash_djb2_hash(((struct obd_uuid *)key)->uuid,
1457 sizeof(((struct obd_uuid *)key)->uuid), mask); 1457 sizeof(((struct obd_uuid *)key)->uuid), mask);
diff --git a/drivers/staging/lustre/lustre/osc/osc_lock.c b/drivers/staging/lustre/lustre/osc/osc_lock.c
index 001fe75ed58c..5f799a4c78f9 100644
--- a/drivers/staging/lustre/lustre/osc/osc_lock.c
+++ b/drivers/staging/lustre/lustre/osc/osc_lock.c
@@ -188,7 +188,7 @@ static void osc_lock_lvb_update(const struct lu_env *env,
188 struct cl_object *obj = osc2cl(osc); 188 struct cl_object *obj = osc2cl(osc);
189 struct lov_oinfo *oinfo = osc->oo_oinfo; 189 struct lov_oinfo *oinfo = osc->oo_oinfo;
190 struct cl_attr *attr = &osc_env_info(env)->oti_attr; 190 struct cl_attr *attr = &osc_env_info(env)->oti_attr;
191 unsigned valid; 191 unsigned int valid;
192 192
193 valid = CAT_BLOCKS | CAT_ATIME | CAT_CTIME | CAT_MTIME | CAT_SIZE; 193 valid = CAT_BLOCKS | CAT_ATIME | CAT_CTIME | CAT_MTIME | CAT_SIZE;
194 if (!lvb) 194 if (!lvb)
diff --git a/drivers/staging/lustre/lustre/osc/osc_quota.c b/drivers/staging/lustre/lustre/osc/osc_quota.c
index 4bb3b45d46de..fed4da63ee45 100644
--- a/drivers/staging/lustre/lustre/osc/osc_quota.c
+++ b/drivers/staging/lustre/lustre/osc/osc_quota.c
@@ -134,8 +134,8 @@ int osc_quota_setdq(struct client_obd *cli, const unsigned int qid[],
134/* 134/*
135 * Hash operations for uid/gid <-> osc_quota_info 135 * Hash operations for uid/gid <-> osc_quota_info
136 */ 136 */
137static unsigned 137static unsigned int
138oqi_hashfn(struct cfs_hash *hs, const void *key, unsigned mask) 138oqi_hashfn(struct cfs_hash *hs, const void *key, unsigned int mask)
139{ 139{
140 return cfs_hash_u32_hash(*((__u32 *)key), mask); 140 return cfs_hash_u32_hash(*((__u32 *)key), mask);
141} 141}
diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c
index 7b6fda53f968..7143564ae7e7 100644
--- a/drivers/staging/lustre/lustre/osc/osc_request.c
+++ b/drivers/staging/lustre/lustre/osc/osc_request.c
@@ -908,9 +908,9 @@ static int check_write_rcs(struct ptlrpc_request *req,
908static inline int can_merge_pages(struct brw_page *p1, struct brw_page *p2) 908static inline int can_merge_pages(struct brw_page *p1, struct brw_page *p2)
909{ 909{
910 if (p1->flag != p2->flag) { 910 if (p1->flag != p2->flag) {
911 unsigned mask = ~(OBD_BRW_FROM_GRANT | OBD_BRW_NOCACHE | 911 unsigned int mask = ~(OBD_BRW_FROM_GRANT | OBD_BRW_NOCACHE |
912 OBD_BRW_SYNC | OBD_BRW_ASYNC | 912 OBD_BRW_SYNC | OBD_BRW_ASYNC |
913 OBD_BRW_NOQUOTA | OBD_BRW_SOFT_SYNC); 913 OBD_BRW_NOQUOTA | OBD_BRW_SOFT_SYNC);
914 914
915 /* warn if we try to combine flags that we don't know to be 915 /* warn if we try to combine flags that we don't know to be
916 * safe to combine 916 * safe to combine
diff --git a/drivers/staging/lustre/lustre/ptlrpc/connection.c b/drivers/staging/lustre/lustre/ptlrpc/connection.c
index 7b020d60c9e5..6c7c8b68a909 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/connection.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/connection.c
@@ -152,8 +152,8 @@ void ptlrpc_connection_fini(void)
152/* 152/*
153 * Hash operations for net_peer<->connection 153 * Hash operations for net_peer<->connection
154 */ 154 */
155static unsigned 155static unsigned int
156conn_hashfn(struct cfs_hash *hs, const void *key, unsigned mask) 156conn_hashfn(struct cfs_hash *hs, const void *key, unsigned int mask)
157{ 157{
158 return cfs_hash_djb2_hash(key, sizeof(lnet_process_id_t), mask); 158 return cfs_hash_djb2_hash(key, sizeof(lnet_process_id_t), mask);
159} 159}
diff --git a/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c b/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
index 9bad57d65db4..f87478180013 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
@@ -479,8 +479,8 @@ static int ptlrpc_lprocfs_nrs_seq_show(struct seq_file *m, void *n)
479 struct ptlrpc_nrs_policy *policy; 479 struct ptlrpc_nrs_policy *policy;
480 struct ptlrpc_nrs_pol_info *infos; 480 struct ptlrpc_nrs_pol_info *infos;
481 struct ptlrpc_nrs_pol_info tmp; 481 struct ptlrpc_nrs_pol_info tmp;
482 unsigned num_pols; 482 unsigned int num_pols;
483 unsigned pol_idx = 0; 483 unsigned int pol_idx = 0;
484 bool hp = false; 484 bool hp = false;
485 int i; 485 int i;
486 int rc = 0; 486 int rc = 0;
diff --git a/drivers/staging/lustre/lustre/ptlrpc/service.c b/drivers/staging/lustre/lustre/ptlrpc/service.c
index fc754e7287ad..70c70558e177 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/service.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/service.c
@@ -343,9 +343,9 @@ ptlrpc_server_nthreads_check(struct ptlrpc_service *svc,
343 struct ptlrpc_service_conf *conf) 343 struct ptlrpc_service_conf *conf)
344{ 344{
345 struct ptlrpc_service_thr_conf *tc = &conf->psc_thr; 345 struct ptlrpc_service_thr_conf *tc = &conf->psc_thr;
346 unsigned init; 346 unsigned int init;
347 unsigned total; 347 unsigned int total;
348 unsigned nthrs; 348 unsigned int nthrs;
349 int weight; 349 int weight;
350 350
351 /* 351 /*
diff --git a/drivers/staging/lustre/lustre/ptlrpc/wiretest.c b/drivers/staging/lustre/lustre/ptlrpc/wiretest.c
index e12eb83b1940..a04e36cf6dd4 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/wiretest.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/wiretest.c
@@ -195,25 +195,25 @@ void lustre_assert_wire_constants(void)
195 LASSERTF(REINT_MAX == 10, "found %lld\n", 195 LASSERTF(REINT_MAX == 10, "found %lld\n",
196 (long long)REINT_MAX); 196 (long long)REINT_MAX);
197 LASSERTF(DISP_IT_EXECD == 0x00000001UL, "found 0x%.8xUL\n", 197 LASSERTF(DISP_IT_EXECD == 0x00000001UL, "found 0x%.8xUL\n",
198 (unsigned)DISP_IT_EXECD); 198 (unsigned int)DISP_IT_EXECD);
199 LASSERTF(DISP_LOOKUP_EXECD == 0x00000002UL, "found 0x%.8xUL\n", 199 LASSERTF(DISP_LOOKUP_EXECD == 0x00000002UL, "found 0x%.8xUL\n",
200 (unsigned)DISP_LOOKUP_EXECD); 200 (unsigned int)DISP_LOOKUP_EXECD);
201 LASSERTF(DISP_LOOKUP_NEG == 0x00000004UL, "found 0x%.8xUL\n", 201 LASSERTF(DISP_LOOKUP_NEG == 0x00000004UL, "found 0x%.8xUL\n",
202 (unsigned)DISP_LOOKUP_NEG); 202 (unsigned int)DISP_LOOKUP_NEG);
203 LASSERTF(DISP_LOOKUP_POS == 0x00000008UL, "found 0x%.8xUL\n", 203 LASSERTF(DISP_LOOKUP_POS == 0x00000008UL, "found 0x%.8xUL\n",
204 (unsigned)DISP_LOOKUP_POS); 204 (unsigned int)DISP_LOOKUP_POS);
205 LASSERTF(DISP_OPEN_CREATE == 0x00000010UL, "found 0x%.8xUL\n", 205 LASSERTF(DISP_OPEN_CREATE == 0x00000010UL, "found 0x%.8xUL\n",
206 (unsigned)DISP_OPEN_CREATE); 206 (unsigned int)DISP_OPEN_CREATE);
207 LASSERTF(DISP_OPEN_OPEN == 0x00000020UL, "found 0x%.8xUL\n", 207 LASSERTF(DISP_OPEN_OPEN == 0x00000020UL, "found 0x%.8xUL\n",
208 (unsigned)DISP_OPEN_OPEN); 208 (unsigned int)DISP_OPEN_OPEN);
209 LASSERTF(DISP_ENQ_COMPLETE == 0x00400000UL, "found 0x%.8xUL\n", 209 LASSERTF(DISP_ENQ_COMPLETE == 0x00400000UL, "found 0x%.8xUL\n",
210 (unsigned)DISP_ENQ_COMPLETE); 210 (unsigned int)DISP_ENQ_COMPLETE);
211 LASSERTF(DISP_ENQ_OPEN_REF == 0x00800000UL, "found 0x%.8xUL\n", 211 LASSERTF(DISP_ENQ_OPEN_REF == 0x00800000UL, "found 0x%.8xUL\n",
212 (unsigned)DISP_ENQ_OPEN_REF); 212 (unsigned int)DISP_ENQ_OPEN_REF);
213 LASSERTF(DISP_ENQ_CREATE_REF == 0x01000000UL, "found 0x%.8xUL\n", 213 LASSERTF(DISP_ENQ_CREATE_REF == 0x01000000UL, "found 0x%.8xUL\n",
214 (unsigned)DISP_ENQ_CREATE_REF); 214 (unsigned int)DISP_ENQ_CREATE_REF);
215 LASSERTF(DISP_OPEN_LOCK == 0x02000000UL, "found 0x%.8xUL\n", 215 LASSERTF(DISP_OPEN_LOCK == 0x02000000UL, "found 0x%.8xUL\n",
216 (unsigned)DISP_OPEN_LOCK); 216 (unsigned int)DISP_OPEN_LOCK);
217 LASSERTF(MDS_STATUS_CONN == 1, "found %lld\n", 217 LASSERTF(MDS_STATUS_CONN == 1, "found %lld\n",
218 (long long)MDS_STATUS_CONN); 218 (long long)MDS_STATUS_CONN);
219 LASSERTF(MDS_STATUS_LOV == 2, "found %lld\n", 219 LASSERTF(MDS_STATUS_LOV == 2, "found %lld\n",
@@ -400,13 +400,13 @@ void lustre_assert_wire_constants(void)
400 LASSERTF((int)sizeof(((struct lustre_mdt_attrs *)0)->lma_self_fid) == 16, "found %lld\n", 400 LASSERTF((int)sizeof(((struct lustre_mdt_attrs *)0)->lma_self_fid) == 16, "found %lld\n",
401 (long long)(int)sizeof(((struct lustre_mdt_attrs *)0)->lma_self_fid)); 401 (long long)(int)sizeof(((struct lustre_mdt_attrs *)0)->lma_self_fid));
402 LASSERTF(LMAI_RELEASED == 0x00000001UL, "found 0x%.8xUL\n", 402 LASSERTF(LMAI_RELEASED == 0x00000001UL, "found 0x%.8xUL\n",
403 (unsigned)LMAI_RELEASED); 403 (unsigned int)LMAI_RELEASED);
404 LASSERTF(LMAC_HSM == 0x00000001UL, "found 0x%.8xUL\n", 404 LASSERTF(LMAC_HSM == 0x00000001UL, "found 0x%.8xUL\n",
405 (unsigned)LMAC_HSM); 405 (unsigned int)LMAC_HSM);
406 LASSERTF(LMAC_NOT_IN_OI == 0x00000004UL, "found 0x%.8xUL\n", 406 LASSERTF(LMAC_NOT_IN_OI == 0x00000004UL, "found 0x%.8xUL\n",
407 (unsigned)LMAC_NOT_IN_OI); 407 (unsigned int)LMAC_NOT_IN_OI);
408 LASSERTF(LMAC_FID_ON_OST == 0x00000008UL, "found 0x%.8xUL\n", 408 LASSERTF(LMAC_FID_ON_OST == 0x00000008UL, "found 0x%.8xUL\n",
409 (unsigned)LMAC_FID_ON_OST); 409 (unsigned int)LMAC_FID_ON_OST);
410 410
411 /* Checks for struct ost_id */ 411 /* Checks for struct ost_id */
412 LASSERTF((int)sizeof(struct ost_id) == 16, "found %lld\n", 412 LASSERTF((int)sizeof(struct ost_id) == 16, "found %lld\n",
@@ -456,11 +456,11 @@ void lustre_assert_wire_constants(void)
456 LASSERTF(FID_SEQ_LOV_DEFAULT == 0xffffffffffffffffULL, "found 0x%.16llxULL\n", 456 LASSERTF(FID_SEQ_LOV_DEFAULT == 0xffffffffffffffffULL, "found 0x%.16llxULL\n",
457 (long long)FID_SEQ_LOV_DEFAULT); 457 (long long)FID_SEQ_LOV_DEFAULT);
458 LASSERTF(FID_OID_SPECIAL_BFL == 0x00000001UL, "found 0x%.8xUL\n", 458 LASSERTF(FID_OID_SPECIAL_BFL == 0x00000001UL, "found 0x%.8xUL\n",
459 (unsigned)FID_OID_SPECIAL_BFL); 459 (unsigned int)FID_OID_SPECIAL_BFL);
460 LASSERTF(FID_OID_DOT_LUSTRE == 0x00000001UL, "found 0x%.8xUL\n", 460 LASSERTF(FID_OID_DOT_LUSTRE == 0x00000001UL, "found 0x%.8xUL\n",
461 (unsigned)FID_OID_DOT_LUSTRE); 461 (unsigned int)FID_OID_DOT_LUSTRE);
462 LASSERTF(FID_OID_DOT_LUSTRE_OBF == 0x00000002UL, "found 0x%.8xUL\n", 462 LASSERTF(FID_OID_DOT_LUSTRE_OBF == 0x00000002UL, "found 0x%.8xUL\n",
463 (unsigned)FID_OID_DOT_LUSTRE_OBF); 463 (unsigned int)FID_OID_DOT_LUSTRE_OBF);
464 464
465 /* Checks for struct lu_dirent */ 465 /* Checks for struct lu_dirent */
466 LASSERTF((int)sizeof(struct lu_dirent) == 32, "found %lld\n", 466 LASSERTF((int)sizeof(struct lu_dirent) == 32, "found %lld\n",
@@ -490,11 +490,11 @@ void lustre_assert_wire_constants(void)
490 LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_name[0]) == 1, "found %lld\n", 490 LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_name[0]) == 1, "found %lld\n",
491 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_name[0])); 491 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_name[0]));
492 LASSERTF(LUDA_FID == 0x00000001UL, "found 0x%.8xUL\n", 492 LASSERTF(LUDA_FID == 0x00000001UL, "found 0x%.8xUL\n",
493 (unsigned)LUDA_FID); 493 (unsigned int)LUDA_FID);
494 LASSERTF(LUDA_TYPE == 0x00000002UL, "found 0x%.8xUL\n", 494 LASSERTF(LUDA_TYPE == 0x00000002UL, "found 0x%.8xUL\n",
495 (unsigned)LUDA_TYPE); 495 (unsigned int)LUDA_TYPE);
496 LASSERTF(LUDA_64BITHASH == 0x00000004UL, "found 0x%.8xUL\n", 496 LASSERTF(LUDA_64BITHASH == 0x00000004UL, "found 0x%.8xUL\n",
497 (unsigned)LUDA_64BITHASH); 497 (unsigned int)LUDA_64BITHASH);
498 498
499 /* Checks for struct luda_type */ 499 /* Checks for struct luda_type */
500 LASSERTF((int)sizeof(struct luda_type) == 2, "found %lld\n", 500 LASSERTF((int)sizeof(struct luda_type) == 2, "found %lld\n",
@@ -820,41 +820,41 @@ void lustre_assert_wire_constants(void)
820 LASSERTF(MSGHDR_CKSUM_INCOMPAT18 == 2, "found %lld\n", 820 LASSERTF(MSGHDR_CKSUM_INCOMPAT18 == 2, "found %lld\n",
821 (long long)MSGHDR_CKSUM_INCOMPAT18); 821 (long long)MSGHDR_CKSUM_INCOMPAT18);
822 LASSERTF(MSG_OP_FLAG_MASK == 0xffff0000UL, "found 0x%.8xUL\n", 822 LASSERTF(MSG_OP_FLAG_MASK == 0xffff0000UL, "found 0x%.8xUL\n",
823 (unsigned)MSG_OP_FLAG_MASK); 823 (unsigned int)MSG_OP_FLAG_MASK);
824 LASSERTF(MSG_OP_FLAG_SHIFT == 16, "found %lld\n", 824 LASSERTF(MSG_OP_FLAG_SHIFT == 16, "found %lld\n",
825 (long long)MSG_OP_FLAG_SHIFT); 825 (long long)MSG_OP_FLAG_SHIFT);
826 LASSERTF(MSG_GEN_FLAG_MASK == 0x0000ffffUL, "found 0x%.8xUL\n", 826 LASSERTF(MSG_GEN_FLAG_MASK == 0x0000ffffUL, "found 0x%.8xUL\n",
827 (unsigned)MSG_GEN_FLAG_MASK); 827 (unsigned int)MSG_GEN_FLAG_MASK);
828 LASSERTF(MSG_LAST_REPLAY == 0x00000001UL, "found 0x%.8xUL\n", 828 LASSERTF(MSG_LAST_REPLAY == 0x00000001UL, "found 0x%.8xUL\n",
829 (unsigned)MSG_LAST_REPLAY); 829 (unsigned int)MSG_LAST_REPLAY);
830 LASSERTF(MSG_RESENT == 0x00000002UL, "found 0x%.8xUL\n", 830 LASSERTF(MSG_RESENT == 0x00000002UL, "found 0x%.8xUL\n",
831 (unsigned)MSG_RESENT); 831 (unsigned int)MSG_RESENT);
832 LASSERTF(MSG_REPLAY == 0x00000004UL, "found 0x%.8xUL\n", 832 LASSERTF(MSG_REPLAY == 0x00000004UL, "found 0x%.8xUL\n",
833 (unsigned)MSG_REPLAY); 833 (unsigned int)MSG_REPLAY);
834 LASSERTF(MSG_DELAY_REPLAY == 0x00000010UL, "found 0x%.8xUL\n", 834 LASSERTF(MSG_DELAY_REPLAY == 0x00000010UL, "found 0x%.8xUL\n",
835 (unsigned)MSG_DELAY_REPLAY); 835 (unsigned int)MSG_DELAY_REPLAY);
836 LASSERTF(MSG_VERSION_REPLAY == 0x00000020UL, "found 0x%.8xUL\n", 836 LASSERTF(MSG_VERSION_REPLAY == 0x00000020UL, "found 0x%.8xUL\n",
837 (unsigned)MSG_VERSION_REPLAY); 837 (unsigned int)MSG_VERSION_REPLAY);
838 LASSERTF(MSG_REQ_REPLAY_DONE == 0x00000040UL, "found 0x%.8xUL\n", 838 LASSERTF(MSG_REQ_REPLAY_DONE == 0x00000040UL, "found 0x%.8xUL\n",
839 (unsigned)MSG_REQ_REPLAY_DONE); 839 (unsigned int)MSG_REQ_REPLAY_DONE);
840 LASSERTF(MSG_LOCK_REPLAY_DONE == 0x00000080UL, "found 0x%.8xUL\n", 840 LASSERTF(MSG_LOCK_REPLAY_DONE == 0x00000080UL, "found 0x%.8xUL\n",
841 (unsigned)MSG_LOCK_REPLAY_DONE); 841 (unsigned int)MSG_LOCK_REPLAY_DONE);
842 LASSERTF(MSG_CONNECT_RECOVERING == 0x00000001UL, "found 0x%.8xUL\n", 842 LASSERTF(MSG_CONNECT_RECOVERING == 0x00000001UL, "found 0x%.8xUL\n",
843 (unsigned)MSG_CONNECT_RECOVERING); 843 (unsigned int)MSG_CONNECT_RECOVERING);
844 LASSERTF(MSG_CONNECT_RECONNECT == 0x00000002UL, "found 0x%.8xUL\n", 844 LASSERTF(MSG_CONNECT_RECONNECT == 0x00000002UL, "found 0x%.8xUL\n",
845 (unsigned)MSG_CONNECT_RECONNECT); 845 (unsigned int)MSG_CONNECT_RECONNECT);
846 LASSERTF(MSG_CONNECT_REPLAYABLE == 0x00000004UL, "found 0x%.8xUL\n", 846 LASSERTF(MSG_CONNECT_REPLAYABLE == 0x00000004UL, "found 0x%.8xUL\n",
847 (unsigned)MSG_CONNECT_REPLAYABLE); 847 (unsigned int)MSG_CONNECT_REPLAYABLE);
848 LASSERTF(MSG_CONNECT_LIBCLIENT == 0x00000010UL, "found 0x%.8xUL\n", 848 LASSERTF(MSG_CONNECT_LIBCLIENT == 0x00000010UL, "found 0x%.8xUL\n",
849 (unsigned)MSG_CONNECT_LIBCLIENT); 849 (unsigned int)MSG_CONNECT_LIBCLIENT);
850 LASSERTF(MSG_CONNECT_INITIAL == 0x00000020UL, "found 0x%.8xUL\n", 850 LASSERTF(MSG_CONNECT_INITIAL == 0x00000020UL, "found 0x%.8xUL\n",
851 (unsigned)MSG_CONNECT_INITIAL); 851 (unsigned int)MSG_CONNECT_INITIAL);
852 LASSERTF(MSG_CONNECT_ASYNC == 0x00000040UL, "found 0x%.8xUL\n", 852 LASSERTF(MSG_CONNECT_ASYNC == 0x00000040UL, "found 0x%.8xUL\n",
853 (unsigned)MSG_CONNECT_ASYNC); 853 (unsigned int)MSG_CONNECT_ASYNC);
854 LASSERTF(MSG_CONNECT_NEXT_VER == 0x00000080UL, "found 0x%.8xUL\n", 854 LASSERTF(MSG_CONNECT_NEXT_VER == 0x00000080UL, "found 0x%.8xUL\n",
855 (unsigned)MSG_CONNECT_NEXT_VER); 855 (unsigned int)MSG_CONNECT_NEXT_VER);
856 LASSERTF(MSG_CONNECT_TRANSNO == 0x00000100UL, "found 0x%.8xUL\n", 856 LASSERTF(MSG_CONNECT_TRANSNO == 0x00000100UL, "found 0x%.8xUL\n",
857 (unsigned)MSG_CONNECT_TRANSNO); 857 (unsigned int)MSG_CONNECT_TRANSNO);
858 858
859 /* Checks for struct obd_connect_data */ 859 /* Checks for struct obd_connect_data */
860 LASSERTF((int)sizeof(struct obd_connect_data) == 192, "found %lld\n", 860 LASSERTF((int)sizeof(struct obd_connect_data) == 192, "found %lld\n",
@@ -1114,11 +1114,11 @@ void lustre_assert_wire_constants(void)
1114 LASSERTF(OBD_CONNECT_FLAGS2 == 0x8000000000000000ULL, "found 0x%.16llxULL\n", 1114 LASSERTF(OBD_CONNECT_FLAGS2 == 0x8000000000000000ULL, "found 0x%.16llxULL\n",
1115 OBD_CONNECT_FLAGS2); 1115 OBD_CONNECT_FLAGS2);
1116 LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n", 1116 LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n",
1117 (unsigned)OBD_CKSUM_CRC32); 1117 (unsigned int)OBD_CKSUM_CRC32);
1118 LASSERTF(OBD_CKSUM_ADLER == 0x00000002UL, "found 0x%.8xUL\n", 1118 LASSERTF(OBD_CKSUM_ADLER == 0x00000002UL, "found 0x%.8xUL\n",
1119 (unsigned)OBD_CKSUM_ADLER); 1119 (unsigned int)OBD_CKSUM_ADLER);
1120 LASSERTF(OBD_CKSUM_CRC32C == 0x00000004UL, "found 0x%.8xUL\n", 1120 LASSERTF(OBD_CKSUM_CRC32C == 0x00000004UL, "found 0x%.8xUL\n",
1121 (unsigned)OBD_CKSUM_CRC32C); 1121 (unsigned int)OBD_CKSUM_CRC32C);
1122 1122
1123 /* Checks for struct obdo */ 1123 /* Checks for struct obdo */
1124 LASSERTF((int)sizeof(struct obdo) == 208, "found %lld\n", 1124 LASSERTF((int)sizeof(struct obdo) == 208, "found %lld\n",
@@ -1428,13 +1428,13 @@ void lustre_assert_wire_constants(void)
1428 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_objects[0])); 1428 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_objects[0]));
1429 CLASSERT(LOV_MAGIC_V3 == (0x0BD30000 | 0x0BD0)); 1429 CLASSERT(LOV_MAGIC_V3 == (0x0BD30000 | 0x0BD0));
1430 LASSERTF(LOV_PATTERN_RAID0 == 0x00000001UL, "found 0x%.8xUL\n", 1430 LASSERTF(LOV_PATTERN_RAID0 == 0x00000001UL, "found 0x%.8xUL\n",
1431 (unsigned)LOV_PATTERN_RAID0); 1431 (unsigned int)LOV_PATTERN_RAID0);
1432 LASSERTF(LOV_PATTERN_RAID1 == 0x00000002UL, "found 0x%.8xUL\n", 1432 LASSERTF(LOV_PATTERN_RAID1 == 0x00000002UL, "found 0x%.8xUL\n",
1433 (unsigned)LOV_PATTERN_RAID1); 1433 (unsigned int)LOV_PATTERN_RAID1);
1434 LASSERTF(LOV_PATTERN_FIRST == 0x00000100UL, "found 0x%.8xUL\n", 1434 LASSERTF(LOV_PATTERN_FIRST == 0x00000100UL, "found 0x%.8xUL\n",
1435 (unsigned)LOV_PATTERN_FIRST); 1435 (unsigned int)LOV_PATTERN_FIRST);
1436 LASSERTF(LOV_PATTERN_CMOBD == 0x00000200UL, "found 0x%.8xUL\n", 1436 LASSERTF(LOV_PATTERN_CMOBD == 0x00000200UL, "found 0x%.8xUL\n",
1437 (unsigned)LOV_PATTERN_CMOBD); 1437 (unsigned int)LOV_PATTERN_CMOBD);
1438 1438
1439 /* Checks for struct lmv_mds_md_v1 */ 1439 /* Checks for struct lmv_mds_md_v1 */
1440 LASSERTF((int)sizeof(struct lmv_mds_md_v1) == 56, "found %lld\n", 1440 LASSERTF((int)sizeof(struct lmv_mds_md_v1) == 56, "found %lld\n",
@@ -4133,9 +4133,9 @@ void lustre_assert_wire_constants(void)
4133 LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_data_len) == 4, "found %lld\n", 4133 LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_data_len) == 4, "found %lld\n",
4134 (long long)(int)sizeof(((struct hsm_request *)0)->hr_data_len)); 4134 (long long)(int)sizeof(((struct hsm_request *)0)->hr_data_len));
4135 LASSERTF(HSM_FORCE_ACTION == 0x00000001UL, "found 0x%.8xUL\n", 4135 LASSERTF(HSM_FORCE_ACTION == 0x00000001UL, "found 0x%.8xUL\n",
4136 (unsigned)HSM_FORCE_ACTION); 4136 (unsigned int)HSM_FORCE_ACTION);
4137 LASSERTF(HSM_GHOST_COPY == 0x00000002UL, "found 0x%.8xUL\n", 4137 LASSERTF(HSM_GHOST_COPY == 0x00000002UL, "found 0x%.8xUL\n",
4138 (unsigned)HSM_GHOST_COPY); 4138 (unsigned int)HSM_GHOST_COPY);
4139 4139
4140 /* Checks for struct hsm_user_request */ 4140 /* Checks for struct hsm_user_request */
4141 LASSERTF((int)sizeof(struct hsm_user_request) == 24, "found %lld\n", 4141 LASSERTF((int)sizeof(struct hsm_user_request) == 24, "found %lld\n",