diff options
author | Jessica Yu <[email protected]> | 2014-07-28 06:33:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-07-30 16:56:42 -0700 |
commit | d81f9f5170058ecd46971cf46d5ad17116c9e5b1 (patch) | |
tree | 0b1867c830a91abf19ee0309ddc44bbb6d6f1ac4 | |
parent | 18e2e99b8c786d1def543bd53063567d5cedd3d1 (diff) |
Staging: lustre: linux-module: add const modifier to file_operations
Add the const modifier to the file_operations struct, since it is
normally const.
Signed-off-by: Jessica Yu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/lustre/lustre/libcfs/linux/linux-module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c index 745fe4cd784d..de3c199654a0 100644 --- a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c +++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c @@ -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, |