From 89b811ebdd408413058c4d71a6be2a7057ea6a4d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 12 Dec 2007 10:13:46 +0000 Subject: [PATCH] gntdev: gntdev_fops struct should be const. Signed-off-by: Jan Beulich --- drivers/xen/gntdev/gntdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/gntdev/gntdev.c b/drivers/xen/gntdev/gntdev.c index dab7ccbf..7db6b5f8 100644 --- a/drivers/xen/gntdev/gntdev.c +++ b/drivers/xen/gntdev/gntdev.c @@ -136,7 +136,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma); static long gntdev_ioctl(struct file *flip, unsigned int cmd, unsigned long arg); -static struct file_operations gntdev_fops = { +static const struct file_operations gntdev_fops = { .owner = THIS_MODULE, .open = gntdev_open, .release = gntdev_release, -- 2.39.5