Staging: lustre: linux-module: add const modifier to file_operations
authorJessica Yu <jyu@cowsay.org>
Mon, 28 Jul 2014 13:33:15 +0000 (06:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:56:42 +0000 (16:56 -0700)
Add the const modifier to the file_operations struct, since it is
normally const.

Signed-off-by: Jessica Yu <jyu@cowsay.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-module.c

index 745fe4c..de3c199 100644 (file)
@@ -170,7 +170,7 @@ static long libcfs_ioctl(struct file *file,
        return rc;
 }
 
-static struct file_operations libcfs_fops = {
+static const struct file_operations libcfs_fops = {
        .unlocked_ioctl = libcfs_ioctl,
        .open           = libcfs_psdev_open,
        .release        = libcfs_psdev_release,