dect
/
linux-2.6
Archived
13
0
Fork 0

switch devtmpfs to umode_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2011-07-24 10:47:56 -04:00
parent f4ae40a6a5
commit fbd48a69a0
1 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ int devtmpfs_delete_node(struct device *dev)
return req.err; return req.err;
} }
static int dev_mkdir(const char *name, mode_t mode) static int dev_mkdir(const char *name, umode_t mode)
{ {
struct dentry *dentry; struct dentry *dentry;
struct path path; struct path path;
@ -189,7 +189,7 @@ static int create_path(const char *nodepath)
return err; return err;
} }
static int handle_create(const char *nodename, mode_t mode, struct device *dev) static int handle_create(const char *nodename, umode_t mode, struct device *dev)
{ {
struct dentry *dentry; struct dentry *dentry;
struct path path; struct path path;
@ -378,7 +378,7 @@ int devtmpfs_mount(const char *mntdir)
static DECLARE_COMPLETION(setup_done); static DECLARE_COMPLETION(setup_done);
static int handle(const char *name, mode_t mode, struct device *dev) static int handle(const char *name, umode_t mode, struct device *dev)
{ {
if (mode) if (mode)
return handle_create(name, mode, dev); return handle_create(name, mode, dev);