From: Jan Engelhardt Date: Tue, 22 Jan 2008 19:50:54 +0000 (+0100) Subject: UIO: constify function pointer tables X-Git-Tag: v2.6.25-rc1~1243^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4f0146919be6bff47b5ea97252bcec0286e4dd19;p=linux-2.6-omap-h63xx.git UIO: constify function pointer tables Signed-off-by: Jan Engelhardt Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 03b66fb734a..cc246faa359 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -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,