|
@@ -939,6 +939,9 @@ static const struct file_operations uverbs_fops = {
|
|
.open = ib_uverbs_open,
|
|
.open = ib_uverbs_open,
|
|
.release = ib_uverbs_close,
|
|
.release = ib_uverbs_close,
|
|
.llseek = no_llseek,
|
|
.llseek = no_llseek,
|
|
|
|
+#if IS_ENABLED(CONFIG_INFINIBAND_EXP_USER_ACCESS)
|
|
|
|
+ .unlocked_ioctl = ib_uverbs_ioctl,
|
|
|
|
+#endif
|
|
};
|
|
};
|
|
|
|
|
|
static const struct file_operations uverbs_mmap_fops = {
|
|
static const struct file_operations uverbs_mmap_fops = {
|
|
@@ -948,6 +951,9 @@ static const struct file_operations uverbs_mmap_fops = {
|
|
.open = ib_uverbs_open,
|
|
.open = ib_uverbs_open,
|
|
.release = ib_uverbs_close,
|
|
.release = ib_uverbs_close,
|
|
.llseek = no_llseek,
|
|
.llseek = no_llseek,
|
|
|
|
+#if IS_ENABLED(CONFIG_INFINIBAND_EXP_USER_ACCESS)
|
|
|
|
+ .unlocked_ioctl = ib_uverbs_ioctl,
|
|
|
|
+#endif
|
|
};
|
|
};
|
|
|
|
|
|
static struct ib_client uverbs_client = {
|
|
static struct ib_client uverbs_client = {
|