drivers/staging/lustre: Replacing 'unsigned' with 'unsigned int'
PATCH 1/1 drivers/staging/lustre: Replacing 'unsigned' with 'unsigned int'
Replacing 'unsigned' with 'unsigned int'
Signed-off-by Pushkar Jambhlekar <[email protected]>
--- drivers/staging/lustre/lustre/llite/namei.c | 2 +- drivers/staging/lustre/lustre/llite/rw26.c | 2 +- drivers/staging/lustre/lustre/llite/vvp_dev.c | 6 +++--- drivers/staging/lustre/lustre/llite/vvp_io.c | 2 +- drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 2 +- drivers/staging/lustre/lustre/obdclass/lu_object.c | 8 ++++---- drivers/staging/lustre/lustre/osc/osc_cache.c | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/lustre/lustre/llite/namei.c +1 -1
@@ -678,7 +678,7 @@ static struct dentry *ll_lookup_nd(struct inode *parent, struct dentry *dentry,* together. */ static int ll_atomic_open (struct inode *dir,struct dentry *dentry, -struct file *file,unsigned open_flags, +struct file *file,unsigned int open_flags,umode_t mode,int *opened) {struct lookup_intent *it;
drivers/staging/lustre/lustre/llite/rw26.c +1 -1
@@ -547,7 +547,7 @@ static int ll_write_begin(struct file *file, struct address_space *mapping, }static int ll_write_end (struct file *file,struct address_space *mapping, -loff_t pos,unsigned len,unsigned copied, +loff_t pos,unsigned int len,unsigned int copied,struct page *vmpage,void *fsdata) {struct ll_cl_context *lcc = fsdata;
drivers/staging/lustre/lustre/llite/vvp_dev.c +3 -3
@@ -381,11 +381,11 @@ int cl_sb_fini(struct super_block *sb)#define PGC_DEPTH_SHIFT (32)struct vvp_pgcache_id { -unsigned vpi_bucket; -unsigned vpi_depth; +unsigned int vpi_bucket; +unsigned int vpi_depth;uint32_t vpi_index; -unsigned vpi_curdep; +unsigned int vpi_curdep;struct lu_object_header *vpi_obj; };
drivers/staging/lustre/lustre/llite/vvp_io.c +1 -1
@@ -598,7 +598,7 @@ static int vvp_io_setattr_time(const struct lu_env *env,struct cl_object *obj = io->ci_obj;struct cl_attr *attr =vvp_env_thread_attr (env);int result; -unsigned valid =CAT_CTIME ; +unsigned int valid =CAT_CTIME ;cl_object_attr_lock (obj); attr->cat_ctime = io->u.ci_setattr.sa_attr.lvb_ctime;
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c +1 -1
@@ -1501,7 +1501,7 @@ int lprocfs_write_frac_u64_helper(const char __user *buffer, {char kernbuf[22 ], *end, *pbuf;__u64 whole, frac =0 , units; -unsigned frac_d =1 ; +unsigned int frac_d =1 ;int sign =1 ;if (count > (sizeof (kernbuf) -1 ))
drivers/staging/lustre/lustre/obdclass/lu_object.c +4 -4
@@ -1796,10 +1796,10 @@ int lu_env_refill(struct lu_env *env)EXPORT_SYMBOL (lu_env_refill);struct lu_site_stats { -unsigned lss_populated; -unsigned lss_max_search; -unsigned lss_total; -unsigned lss_busy; +unsigned int lss_populated; +unsigned int lss_max_search; +unsigned int lss_total; +unsigned int lss_busy; }; static void lu_site_stats_get(struct cfs_hash *hs,
drivers/staging/lustre/lustre/osc/osc_cache.c +2 -2
@@ -1893,7 +1893,7 @@ struct extent_rpc_data {static inline unsigned osc_extent_chunks (const struct osc_extent *ext) {struct client_obd *cli =osc_cli (ext->oe_obj); -unsigned ppc_bits = cli->cl_chunkbits -PAGE_SHIFT ; +unsigned int ppc_bits = cli->cl_chunkbits -PAGE_SHIFT ;return (ext->oe_end >> ppc_bits) - (ext->oe_start >> ppc_bits) +1 ; }
@@ -1951,7 +1951,7 @@ static int try_to_add_extent_for_io(struct client_obd *cli,return 1 ; } -static inline unsigned osc_max_write_chunks (const struct client_obd *cli) +static inline unsigned int osc_max_write_chunks (const struct client_obd *cli) {/* * LU-8135:
Signature · 1 line
2.7.4
Greg Kroah-Hartman
maintainerQuoted 1 line · Pushkar Jambhlekar
Replacing 'unsigned' with 'unsigned int'
Why? You need to explain why you do something, not just say what you did (that should be obvious if you read the patch...)
thanks,
greg k-h