Skip to content

Commit 0486b18

Browse files
winterverMiklos Szeredi
authored andcommitted
fuse: change 'unsigned' to 'unsigned int'
Prefer 'unsigned int' to bare 'unsigned', as reported by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'. Signed-off-by: Jiale Yang <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 0af2f6b commit 0486b18

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

fs/fuse/fuse_i.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ extern struct list_head fuse_conn_list;
7474
extern struct mutex fuse_mutex;
7575

7676
/** Module parameters */
77-
extern unsigned max_user_bgreq;
78-
extern unsigned max_user_congthresh;
77+
extern unsigned int max_user_bgreq;
78+
extern unsigned int max_user_congthresh;
7979

8080
/* One forget request */
8181
struct fuse_forget_link {

fs/fuse/inode.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ unsigned int fuse_max_pages_limit = 256;
4141
unsigned int fuse_default_req_timeout;
4242
unsigned int fuse_max_req_timeout;
4343

44-
unsigned max_user_bgreq;
44+
unsigned int max_user_bgreq;
4545
module_param_call(max_user_bgreq, set_global_limit, param_get_uint,
4646
&max_user_bgreq, 0644);
4747
__MODULE_PARM_TYPE(max_user_bgreq, "uint");
4848
MODULE_PARM_DESC(max_user_bgreq,
4949
"Global limit for the maximum number of backgrounded requests an "
5050
"unprivileged user can set");
5151

52-
unsigned max_user_congthresh;
52+
unsigned int max_user_congthresh;
5353
module_param_call(max_user_congthresh, set_global_limit, param_get_uint,
5454
&max_user_congthresh, 0644);
5555
__MODULE_PARM_TYPE(max_user_congthresh, "uint");
@@ -1036,7 +1036,7 @@ struct fuse_conn *fuse_conn_get(struct fuse_conn *fc)
10361036
}
10371037
EXPORT_SYMBOL_GPL(fuse_conn_get);
10381038

1039-
static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned mode)
1039+
static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned int mode)
10401040
{
10411041
struct fuse_attr attr;
10421042
memset(&attr, 0, sizeof(attr));
@@ -1211,7 +1211,7 @@ static const struct super_operations fuse_super_operations = {
12111211
.show_options = fuse_show_options,
12121212
};
12131213

1214-
static void sanitize_global_limit(unsigned *limit)
1214+
static void sanitize_global_limit(unsigned int *limit)
12151215
{
12161216
/*
12171217
* The default maximum number of async requests is calculated to consume
@@ -1232,7 +1232,7 @@ static int set_global_limit(const char *val, const struct kernel_param *kp)
12321232
if (rv)
12331233
return rv;
12341234

1235-
sanitize_global_limit((unsigned *)kp->arg);
1235+
sanitize_global_limit((unsigned int *)kp->arg);
12361236

12371237
return 0;
12381238
}

0 commit comments

Comments
 (0)