aboutsummaryrefslogtreecommitdiffstats
path: root/u09.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-19 14:26:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-19 14:26:09 +0200
commit3f8f9c9c0c38211ab69730bd268168afa2dc13d2 (patch)
tree1e146b45f278936f6758cfd1b2fae2c4699cc5b1 /u09.patch
parent5a7f345ba5e849229317f73497a17637c9a08e4a (diff)
downloadpatches-3f8f9c9c0c38211ab69730bd268168afa2dc13d2.tar.gz
add USB MODULE_VERSION patches
Diffstat (limited to 'u09.patch')
-rw-r--r--u09.patch80
1 files changed, 80 insertions, 0 deletions
diff --git a/u09.patch b/u09.patch
new file mode 100644
index 00000000000000..f3896d8bc60056
--- /dev/null
+++ b/u09.patch
@@ -0,0 +1,80 @@
+From foo@baz Wed Jul 19 14:08:38 CEST 2017
+Date: Wed, 19 Jul 2017 14:08:38 +0200
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: USB: usbip: remove unneeded MODULE_VERSION() usage
+
+MODULE_VERSION is useless for in-kernel drivers, so just remove all
+usage of it in the USB usbip drivers. Along with this, the
+USBIP_VERSION macros was removed as is was also pointless, as well as
+printing out the driver version to the syslog at init time, which is not
+necessary at all.
+
+Cc: Valentina Manea <valentina.manea.m@gmail.com>
+Cc: Shuah Khan <shuah@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+
+---
+ drivers/usb/usbip/stub_main.c | 2 --
+ drivers/usb/usbip/usbip_common.c | 2 --
+ drivers/usb/usbip/usbip_common.h | 2 --
+ drivers/usb/usbip/vhci_hcd.c | 2 --
+ 4 files changed, 8 deletions(-)
+
+--- a/drivers/usb/usbip/stub_main.c
++++ b/drivers/usb/usbip/stub_main.c
+@@ -302,7 +302,6 @@ static int __init usbip_host_init(void)
+ goto err_create_file;
+ }
+
+- pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
+ return ret;
+
+ err_create_file:
+@@ -335,4 +334,3 @@ module_exit(usbip_host_exit);
+ MODULE_AUTHOR(DRIVER_AUTHOR);
+ MODULE_DESCRIPTION(DRIVER_DESC);
+ MODULE_LICENSE("GPL");
+-MODULE_VERSION(USBIP_VERSION);
+--- a/drivers/usb/usbip/usbip_common.c
++++ b/drivers/usb/usbip/usbip_common.c
+@@ -763,7 +763,6 @@ static int __init usbip_core_init(void)
+ {
+ int ret;
+
+- pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
+ ret = usbip_init_eh();
+ if (ret)
+ return ret;
+@@ -783,4 +782,3 @@ module_exit(usbip_core_exit);
+ MODULE_AUTHOR(DRIVER_AUTHOR);
+ MODULE_DESCRIPTION(DRIVER_DESC);
+ MODULE_LICENSE("GPL");
+-MODULE_VERSION(USBIP_VERSION);
+--- a/drivers/usb/usbip/usbip_common.h
++++ b/drivers/usb/usbip/usbip_common.h
+@@ -34,8 +34,6 @@
+ #include <linux/sched/task.h>
+ #include <uapi/linux/usbip.h>
+
+-#define USBIP_VERSION "1.0.0"
+-
+ #undef pr_fmt
+
+ #ifdef DEBUG
+--- a/drivers/usb/usbip/vhci_hcd.c
++++ b/drivers/usb/usbip/vhci_hcd.c
+@@ -1516,7 +1516,6 @@ static int __init vhci_hcd_init(void)
+ }
+ }
+
+- pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
+ return ret;
+
+ err_add_hcd:
+@@ -1542,4 +1541,3 @@ module_exit(vhci_hcd_exit);
+ MODULE_AUTHOR(DRIVER_AUTHOR);
+ MODULE_DESCRIPTION(DRIVER_DESC);
+ MODULE_LICENSE("GPL");
+-MODULE_VERSION(USBIP_VERSION);