Staging: lustre: Added const
authorMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Fri, 27 Feb 2015 20:42:09 +0000 (22:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 00:35:11 +0000 (16:35 -0800)
WARNING: struct file_operations should normally be const.
That was found by running checkpatch.

Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c

index 0e2071b8a36e97c09353bff50802ac196fd35d2f..bc0e8e4fc651210f9baa7e8d513cedbc24ee9658 100644 (file)
@@ -1083,7 +1083,7 @@ void ptlrpc_lprocfs_register_service(struct proc_dir_entry *entry,
                 .data       = svc},
                {NULL}
        };
-       static struct file_operations req_history_fops = {
+       static const struct file_operations req_history_fops = {
                .owner       = THIS_MODULE,
                .open   = ptlrpc_lprocfs_svc_req_history_open,
                .read   = seq_read,
This page took 0.025633 seconds and 5 git commands to generate.