diff options
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_fs.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 31ae1b108ae..b7d4216db3c 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -46,7 +46,7 @@ | |||
46 | static struct super_block *ipath_super; | 46 | static struct super_block *ipath_super; |
47 | 47 | ||
48 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | 48 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, |
49 | int mode, const struct file_operations *fops, | 49 | umode_t mode, const struct file_operations *fops, |
50 | void *data) | 50 | void *data) |
51 | { | 51 | { |
52 | int error; | 52 | int error; |
@@ -61,7 +61,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | |||
61 | inode->i_mode = mode; | 61 | inode->i_mode = mode; |
62 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 62 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
63 | inode->i_private = data; | 63 | inode->i_private = data; |
64 | if ((mode & S_IFMT) == S_IFDIR) { | 64 | if (S_ISDIR(mode)) { |
65 | inode->i_op = &simple_dir_inode_operations; | 65 | inode->i_op = &simple_dir_inode_operations; |
66 | inc_nlink(inode); | 66 | inc_nlink(inode); |
67 | inc_nlink(dir); | 67 | inc_nlink(dir); |
@@ -76,7 +76,7 @@ bail: | |||
76 | return error; | 76 | return error; |
77 | } | 77 | } |
78 | 78 | ||
79 | static int create_file(const char *name, mode_t mode, | 79 | static int create_file(const char *name, umode_t mode, |
80 | struct dentry *parent, struct dentry **dentry, | 80 | struct dentry *parent, struct dentry **dentry, |
81 | const struct file_operations *fops, void *data) | 81 | const struct file_operations *fops, void *data) |
82 | { | 82 | { |
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index df7fa251dcd..05e0f17c5b4 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
@@ -47,7 +47,7 @@ static struct super_block *qib_super; | |||
47 | #define private2dd(file) ((file)->f_dentry->d_inode->i_private) | 47 | #define private2dd(file) ((file)->f_dentry->d_inode->i_private) |
48 | 48 | ||
49 | static int qibfs_mknod(struct inode *dir, struct dentry *dentry, | 49 | static int qibfs_mknod(struct inode *dir, struct dentry *dentry, |
50 | int mode, const struct file_operations *fops, | 50 | umode_t mode, const struct file_operations *fops, |
51 | void *data) | 51 | void *data) |
52 | { | 52 | { |
53 | int error; | 53 | int error; |
@@ -67,7 +67,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry, | |||
67 | inode->i_mtime = inode->i_atime; | 67 | inode->i_mtime = inode->i_atime; |
68 | inode->i_ctime = inode->i_atime; | 68 | inode->i_ctime = inode->i_atime; |
69 | inode->i_private = data; | 69 | inode->i_private = data; |
70 | if ((mode & S_IFMT) == S_IFDIR) { | 70 | if (S_ISDIR(mode)) { |
71 | inode->i_op = &simple_dir_inode_operations; | 71 | inode->i_op = &simple_dir_inode_operations; |
72 | inc_nlink(inode); | 72 | inc_nlink(inode); |
73 | inc_nlink(dir); | 73 | inc_nlink(dir); |
@@ -82,7 +82,7 @@ bail: | |||
82 | return error; | 82 | return error; |
83 | } | 83 | } |
84 | 84 | ||
85 | static int create_file(const char *name, mode_t mode, | 85 | static int create_file(const char *name, umode_t mode, |
86 | struct dentry *parent, struct dentry **dentry, | 86 | struct dentry *parent, struct dentry **dentry, |
87 | const struct file_operations *fops, void *data) | 87 | const struct file_operations *fops, void *data) |
88 | { | 88 | { |