提交 4f014691 编写于 作者: J Jan Engelhardt 提交者: Greg Kroah-Hartman

UIO: constify function pointer tables

Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ae72cddb
......@@ -39,7 +39,7 @@ struct uio_device {
static int uio_major;
static DEFINE_IDR(uio_idr);
static struct file_operations uio_fops;
static const struct file_operations uio_fops;
/* UIO class infrastructure */
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,
.open = uio_open,
.release = uio_release,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册