]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
switch devtmpfs to umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 14:47:56 +0000 (10:47 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:54:57 +0000 (22:54 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/base/devtmpfs.c

index 3990f682e6906f54740fcfb336dd9d1476b07d55..393f450cf43c3ea6a990975aa32591e0afc77ea2 100644 (file)
@@ -142,7 +142,7 @@ int devtmpfs_delete_node(struct device *dev)
        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 path path;
@@ -189,7 +189,7 @@ static int create_path(const char *nodepath)
        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 path path;
@@ -378,7 +378,7 @@ int devtmpfs_mount(const char *mntdir)
 
 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)
                return handle_create(name, mode, dev);