diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-24 16:47:09 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 11:39:31 +0200 |
commit | b64d47ae62e5f56727ad6dc2088e13dfab524a83 (patch) | |
tree | 502ecd34ad33e909076ba704d46c36a5acf00e10 /drivers/usb | |
parent | d527d1ea5d12aafbd0373b5e6547464c370ea18c (diff) | |
download | linux-b64d47ae62e5f56727ad6dc2088e13dfab524a83.tar.gz linux-b64d47ae62e5f56727ad6dc2088e13dfab524a83.tar.bz2 linux-b64d47ae62e5f56727ad6dc2088e13dfab524a83.zip |
USB: core: constify vm_operations_struct
vm_operations_struct are not supposed to change at runtime.
All functions working with const vm_operations_struct.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/devio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 0ff0feddfd1f..318bb3b96687 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -210,7 +210,7 @@ static void usbdev_vm_close(struct vm_area_struct *vma) dec_usb_memory_use_count(usbm, &usbm->vma_use_count); } -static struct vm_operations_struct usbdev_vm_ops = { +static const struct vm_operations_struct usbdev_vm_ops = { .open = usbdev_vm_open, .close = usbdev_vm_close }; |