Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420232 > unrolled thread

usb: common: otg-fsm: add license to usb-otg-fsm

Started byOscar <oscar@naiandei.net>
First post2016-06-12 13:20 +0200
Last post2016-06-13 10:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  usb: common: otg-fsm: add license to usb-otg-fsm Oscar <oscar@naiandei.net> - 2016-06-12 13:20 +0200
    Re: usb: common: otg-fsm: add license to usb-otg-fsm Peter Chen <hzpeterchen@gmail.com> - 2016-06-13 10:00 +0200

#1420232 — usb: common: otg-fsm: add license to usb-otg-fsm

FromOscar <oscar@naiandei.net>
Date2016-06-12 13:20 +0200
Subjectusb: common: otg-fsm: add license to usb-otg-fsm
Message-ID<rJbAR-7YK-1@gated-at.bofh.it>
usb: common: otg-fsm: add license to usb-otg-fsm.

Fix warning about tainted kernel because usb-otg-fsm has no license.
WARNING: with this patch usb-otg-fsm module can be loaded
but then the kernel hangs. Tested with a udoo quad board.

Signed-off-by: Oscar Curero <oscar@naiandei.net>
---

--- a/drivers/usb/common/usb-otg-fsm.c.orig     2016-06-12 
12:02:09.269814317 +0200
+++ b/drivers/usb/common/usb-otg-fsm.c  2016-06-12 12:01:54.473000410 
+0200
@@ -21,6 +21,7 @@
   * 675 Mass Ave, Cambridge, MA 02139, USA.
   */

+#include <linux/module.h>
  #include <linux/kernel.h>
  #include <linux/types.h>
  #include <linux/mutex.h>
@@ -452,3 +453,4 @@ int otg_statemachine(struct otg_fsm *fsm
         return state_changed;
  }
  EXPORT_SYMBOL_GPL(otg_statemachine);
+MODULE_LICENSE("GPL");

[toc] | [next] | [standalone]


#1420555

FromPeter Chen <hzpeterchen@gmail.com>
Date2016-06-13 10:00 +0200
Message-ID<rJuWS-3i5-25@gated-at.bofh.it>
In reply to#1420232
On Sun, Jun 12, 2016 at 01:06:45PM +0200, Oscar wrote:
> usb: common: otg-fsm: add license to usb-otg-fsm.
> 
> Fix warning about tainted kernel because usb-otg-fsm has no license.
> WARNING: with this patch usb-otg-fsm module can be loaded
> but then the kernel hangs. Tested with a udoo quad board.
> 
> Signed-off-by: Oscar Curero <oscar@naiandei.net>
> ---
> 
> --- a/drivers/usb/common/usb-otg-fsm.c.orig     2016-06-12
> 12:02:09.269814317 +0200
> +++ b/drivers/usb/common/usb-otg-fsm.c  2016-06-12
> 12:01:54.473000410 +0200
> @@ -21,6 +21,7 @@
>   * 675 Mass Ave, Cambridge, MA 02139, USA.
>   */
> 
> +#include <linux/module.h>
>  #include <linux/kernel.h>
>  #include <linux/types.h>
>  #include <linux/mutex.h>
> @@ -452,3 +453,4 @@ int otg_statemachine(struct otg_fsm *fsm
>         return state_changed;
>  }
>  EXPORT_SYMBOL_GPL(otg_statemachine);
> +MODULE_LICENSE("GPL");
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Good catch, but would you please create the patch using "git
format-patch", I can't apply it directly.

-- 

Best Regards,
Peter Chen

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web