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 745fe4cd784da82598803192b8417828773fa7ac..de3c199654a04acb050ccd2bf51025b3f3244ec8 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,