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 <jyu@cowsay.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
18e2e99b8c
commit
d81f9f5170
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue