You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
const: mark struct vm_struct_operations
* mark struct vm_area_struct::vm_ops as const * mark vm_ops in AGP code But leave TTM code alone, something is fishy there with global vm_ops being used. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6f5071020d
commit
f0f37e2f77
@@ -1325,7 +1325,7 @@ static void cafe_v4l_vm_close(struct vm_area_struct *vma)
|
||||
mutex_unlock(&sbuf->cam->s_mutex);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct cafe_v4l_vm_ops = {
|
||||
static const struct vm_operations_struct cafe_v4l_vm_ops = {
|
||||
.open = cafe_v4l_vm_open,
|
||||
.close = cafe_v4l_vm_close
|
||||
};
|
||||
|
||||
@@ -1496,7 +1496,7 @@ static void et61x251_vm_close(struct vm_area_struct* vma)
|
||||
}
|
||||
|
||||
|
||||
static struct vm_operations_struct et61x251_vm_ops = {
|
||||
static const struct vm_operations_struct et61x251_vm_ops = {
|
||||
.open = et61x251_vm_open,
|
||||
.close = et61x251_vm_close,
|
||||
};
|
||||
|
||||
@@ -99,7 +99,7 @@ static void gspca_vm_close(struct vm_area_struct *vma)
|
||||
frame->v4l2_buf.flags &= ~V4L2_BUF_FLAG_MAPPED;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct gspca_vm_ops = {
|
||||
static const struct vm_operations_struct gspca_vm_ops = {
|
||||
.open = gspca_vm_open,
|
||||
.close = gspca_vm_close,
|
||||
};
|
||||
|
||||
@@ -1589,7 +1589,7 @@ static void meye_vm_close(struct vm_area_struct *vma)
|
||||
meye.vma_use_count[idx]--;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct meye_vm_ops = {
|
||||
static const struct vm_operations_struct meye_vm_ops = {
|
||||
.open = meye_vm_open,
|
||||
.close = meye_vm_close,
|
||||
};
|
||||
|
||||
@@ -2077,7 +2077,7 @@ static void sn9c102_vm_close(struct vm_area_struct* vma)
|
||||
}
|
||||
|
||||
|
||||
static struct vm_operations_struct sn9c102_vm_ops = {
|
||||
static const struct vm_operations_struct sn9c102_vm_ops = {
|
||||
.open = sn9c102_vm_open,
|
||||
.close = sn9c102_vm_close,
|
||||
};
|
||||
|
||||
@@ -790,7 +790,7 @@ static void stk_v4l_vm_close(struct vm_area_struct *vma)
|
||||
if (sbuf->mapcount == 0)
|
||||
sbuf->v4lbuf.flags &= ~V4L2_BUF_FLAG_MAPPED;
|
||||
}
|
||||
static struct vm_operations_struct stk_v4l_vm_ops = {
|
||||
static const struct vm_operations_struct stk_v4l_vm_ops = {
|
||||
.open = stk_v4l_vm_open,
|
||||
.close = stk_v4l_vm_close
|
||||
};
|
||||
|
||||
@@ -1069,7 +1069,7 @@ static void uvc_vm_close(struct vm_area_struct *vma)
|
||||
buffer->vma_use_count--;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct uvc_vm_ops = {
|
||||
static const struct vm_operations_struct uvc_vm_ops = {
|
||||
.open = uvc_vm_open,
|
||||
.close = uvc_vm_close,
|
||||
};
|
||||
|
||||
@@ -105,7 +105,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
|
||||
}
|
||||
}
|
||||
|
||||
static struct vm_operations_struct videobuf_vm_ops = {
|
||||
static const struct vm_operations_struct videobuf_vm_ops = {
|
||||
.open = videobuf_vm_open,
|
||||
.close = videobuf_vm_close,
|
||||
};
|
||||
|
||||
@@ -394,7 +394,7 @@ videobuf_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct videobuf_vm_ops =
|
||||
static const struct vm_operations_struct videobuf_vm_ops =
|
||||
{
|
||||
.open = videobuf_vm_open,
|
||||
.close = videobuf_vm_close,
|
||||
|
||||
@@ -116,7 +116,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
|
||||
return;
|
||||
}
|
||||
|
||||
static struct vm_operations_struct videobuf_vm_ops =
|
||||
static const struct vm_operations_struct videobuf_vm_ops =
|
||||
{
|
||||
.open = videobuf_vm_open,
|
||||
.close = videobuf_vm_close,
|
||||
|
||||
@@ -3857,7 +3857,7 @@ static void vino_vm_close(struct vm_area_struct *vma)
|
||||
dprintk("vino_vm_close(): count = %d\n", fb->map_count);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct vino_vm_ops = {
|
||||
static const struct vm_operations_struct vino_vm_ops = {
|
||||
.open = vino_vm_open,
|
||||
.close = vino_vm_close,
|
||||
};
|
||||
|
||||
@@ -935,7 +935,7 @@ static void zc0301_vm_close(struct vm_area_struct* vma)
|
||||
}
|
||||
|
||||
|
||||
static struct vm_operations_struct zc0301_vm_ops = {
|
||||
static const struct vm_operations_struct zc0301_vm_ops = {
|
||||
.open = zc0301_vm_open,
|
||||
.close = zc0301_vm_close,
|
||||
};
|
||||
|
||||
@@ -3172,7 +3172,7 @@ zoran_vm_close (struct vm_area_struct *vma)
|
||||
mutex_unlock(&zr->resource_lock);
|
||||
}
|
||||
|
||||
static struct vm_operations_struct zoran_vm_ops = {
|
||||
static const struct vm_operations_struct zoran_vm_ops = {
|
||||
.open = zoran_vm_open,
|
||||
.close = zoran_vm_close,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user