diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-08-28 23:45:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-01 17:29:21 +0200 |
commit | 495ea0d99355e550a120b706515d6be55d198ac2 (patch) | |
tree | 6716807d8d2e1fff597a1a5b2ea6151e3bbed842 /drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | |
parent | staging: lustre: hide unused variable (diff) | |
download | linux-dev-495ea0d99355e550a120b706515d6be55d198ac2.tar.xz linux-dev-495ea0d99355e550a120b706515d6be55d198ac2.zip |
staging: lustre: obdclass: constify obd_psdev_fops structure
obd_psdev_fops, of type struct file_operations, is never modified, so
declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/obdclass/linux/linux-module.c')
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c index 27a72d899770..2b691d8cdf96 100644 --- a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c +++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c @@ -192,7 +192,7 @@ static long obd_class_ioctl(struct file *filp, unsigned int cmd, } /* declare character device */ -static struct file_operations obd_psdev_fops = { +static const struct file_operations obd_psdev_fops = { .owner = THIS_MODULE, .unlocked_ioctl = obd_class_ioctl, /* unlocked_ioctl */ .open = obd_class_open, /* open */ |