UIO: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ae72cddb23
commit
4f0146919b
@ -39,7 +39,7 @@ struct uio_device {
|
|||||||
|
|
||||||
static int uio_major;
|
static int uio_major;
|
||||||
static DEFINE_IDR(uio_idr);
|
static DEFINE_IDR(uio_idr);
|
||||||
static struct file_operations uio_fops;
|
static const struct file_operations uio_fops;
|
||||||
|
|
||||||
/* UIO class infrastructure */
|
/* UIO class infrastructure */
|
||||||
static struct uio_class {
|
static struct uio_class {
|
||||||
@ -508,7 +508,7 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct file_operations uio_fops = {
|
static const struct file_operations uio_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = uio_open,
|
.open = uio_open,
|
||||||
.release = uio_release,
|
.release = uio_release,
|
||||||
|
Loading…
Reference in New Issue
Block a user