aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/cm.c2
-rw-r--r--drivers/infiniband/core/user_mad.c2
-rw-r--r--drivers/infiniband/core/uverbs_main.c2
-rw-r--r--drivers/infiniband/hw/ipath/ipath_fs.c6
-rw-r--r--drivers/infiniband/hw/qib/qib_fs.c6
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c2
6 files changed, 10 insertions, 10 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 8b72f39202fb..c889aaef3416 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -3659,7 +3659,7 @@ static struct kobj_type cm_port_obj_type = {
3659 .release = cm_release_port_obj 3659 .release = cm_release_port_obj
3660}; 3660};
3661 3661
3662static char *cm_devnode(struct device *dev, mode_t *mode) 3662static char *cm_devnode(struct device *dev, umode_t *mode)
3663{ 3663{
3664 if (mode) 3664 if (mode)
3665 *mode = 0666; 3665 *mode = 0666;
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c
index 07db22997e97..f0d588f8859e 100644
--- a/drivers/infiniband/core/user_mad.c
+++ b/drivers/infiniband/core/user_mad.c
@@ -1175,7 +1175,7 @@ static void ib_umad_remove_one(struct ib_device *device)
1175 kref_put(&umad_dev->ref, ib_umad_release_dev); 1175 kref_put(&umad_dev->ref, ib_umad_release_dev);
1176} 1176}
1177 1177
1178static char *umad_devnode(struct device *dev, mode_t *mode) 1178static char *umad_devnode(struct device *dev, umode_t *mode)
1179{ 1179{
1180 return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); 1180 return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev));
1181} 1181}
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 879636746373..604556d73d25 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -846,7 +846,7 @@ static void ib_uverbs_remove_one(struct ib_device *device)
846 kfree(uverbs_dev); 846 kfree(uverbs_dev);
847} 847}
848 848
849static char *uverbs_devnode(struct device *dev, mode_t *mode) 849static char *uverbs_devnode(struct device *dev, umode_t *mode)
850{ 850{
851 if (mode) 851 if (mode)
852 *mode = 0666; 852 *mode = 0666;
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c
index 31ae1b108aea..b7d4216db3c3 100644
--- a/drivers/infiniband/hw/ipath/ipath_fs.c
+++ b/drivers/infiniband/hw/ipath/ipath_fs.c
@@ -46,7 +46,7 @@
46static struct super_block *ipath_super; 46static struct super_block *ipath_super;
47 47
48static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, 48static 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
79static int create_file(const char *name, mode_t mode, 79static 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 df7fa251dcdc..05e0f17c5b44 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
49static int qibfs_mknod(struct inode *dir, struct dentry *dentry, 49static 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
85static int create_file(const char *name, mode_t mode, 85static 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{
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index 7e7373a700e6..9a43cb07f294 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -638,7 +638,7 @@ iscsi_iser_ep_disconnect(struct iscsi_endpoint *ep)
638 iser_conn_terminate(ib_conn); 638 iser_conn_terminate(ib_conn);
639} 639}
640 640
641static mode_t iser_attr_is_visible(int param_type, int param) 641static umode_t iser_attr_is_visible(int param_type, int param)
642{ 642{
643 switch (param_type) { 643 switch (param_type) {
644 case ISCSI_HOST_PARAM: 644 case ISCSI_HOST_PARAM: