switch may_mknod() to umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 08:31:40 +0000 (04:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:55:14 +0000 (22:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index 85bb44f222c94b933a78d9de53cb9116c2b84500..e275dc36d7c50ca54c7afcedc451262ed5dbe45d 100644 (file)
@@ -2472,7 +2472,7 @@ int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
        return error;
 }
 
-static int may_mknod(mode_t mode)
+static int may_mknod(umode_t mode)
 {
        switch (mode & S_IFMT) {
        case S_IFREG: