aboutsummaryrefslogtreecommitdiffstats
path: root/0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-17 15:33:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-17 15:33:17 +0100
commita431c0902c6a9c8ca02fc519c75a487ace5e1682 (patch)
treeae6e31f122b018436d7ecda20c10576eb869a31f /0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch
parentb2e3df6421e77c5f5f6248d19160b3d1950d78e8 (diff)
downloadpatches-a431c0902c6a9c8ca02fc519c75a487ace5e1682.tar.gz
some new patches added so I don't loose them.
Diffstat (limited to '0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch')
-rw-r--r--0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch b/0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch
new file mode 100644
index 00000000000000..a4cb06b03e955e
--- /dev/null
+++ b/0004-net-usb-hso.c-remove-unneeded-DRIVER_LICENSE-define.patch
@@ -0,0 +1,43 @@
+From ab4e89a53a84e124336e6d426e52a78f21c1043a Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Fri, 17 Nov 2017 15:06:32 +0100
+Subject: [PATCH 4/7] net: usb: hso.c: remove unneeded DRIVER_LICENSE #define
+
+There is no need to #define the license of the driver, just put it in
+the MODULE_LICENSE() line directly as a text string.
+
+This allows tools that check that the module license matches the source
+code license to work properly, as there is no need to unwind the
+unneeded dereference.
+
+Cc: "David S. Miller" <davem@davemloft.net>
+Cc: Andreas Kemnade <andreas@kemnade.info>
+Cc: Johan Hovold <johan@kernel.org>
+Cc: linux-usb@vger.kernel.org
+Cc: netdev@vger.kernel.org
+Cc: linux-kernel@vger.kernel.org
+Reported-by: Philippe Ombredanne <pombredanne@nexb.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/usb/hso.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/drivers/net/usb/hso.c
++++ b/drivers/net/usb/hso.c
+@@ -76,7 +76,6 @@
+
+ #define MOD_AUTHOR "Option Wireless"
+ #define MOD_DESCRIPTION "USB High Speed Option driver"
+-#define MOD_LICENSE "GPL"
+
+ #define HSO_MAX_NET_DEVICES 10
+ #define HSO__MAX_MTU 2048
+@@ -3288,7 +3287,7 @@ module_exit(hso_exit);
+
+ MODULE_AUTHOR(MOD_AUTHOR);
+ MODULE_DESCRIPTION(MOD_DESCRIPTION);
+-MODULE_LICENSE(MOD_LICENSE);
++MODULE_LICENSE("GPL");
+
+ /* change the debug level (eg: insmod hso.ko debug=0x04) */
+ MODULE_PARM_DESC(debug, "debug level mask [0x01 | 0x02 | 0x04 | 0x08 | 0x10]");