* [PATCH] usb: devio: declare usbdev_vm_ops as static
@ 2016-04-27 19:23 Michele Curti
0 siblings, 0 replies; only message in thread
From: Michele Curti @ 2016-04-27 19:23 UTC (permalink / raw)
To: gregkh; +Cc: linux-usb, linux-kernel, Michele Curti
usbdev_vm_ops is used in devio.c only, so declare it as static
Signed-off-by: Michele Curti <michele.curti@gmail.com>
---
drivers/usb/core/devio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 52c4461..73ce871 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -216,7 +216,7 @@ static void usbdev_vm_close(struct vm_area_struct *vma)
dec_usb_memory_use_count(usbm, &usbm->vma_use_count);
}
-struct vm_operations_struct usbdev_vm_ops = {
+static struct vm_operations_struct usbdev_vm_ops = {
.open = usbdev_vm_open,
.close = usbdev_vm_close
};
--
2.8.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-27 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 19:23 [PATCH] usb: devio: declare usbdev_vm_ops as static Michele Curti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®