* [PATCH] input: pegasus_notetaker: add license information @ 2017-11-18 8:45 Martin Kepplinger 2017-11-26 0:42 ` Dmitry Torokhov 0 siblings, 1 reply; 10+ messages in thread From: Martin Kepplinger @ 2017-11-18 8:45 UTC (permalink / raw) To: dmitry.torokhov; +Cc: linux-input, linux-kernel, Martin Kepplinger This adds an SPDX license identifier to this driver I wrote some time back. Signed-off-by: Martin Kepplinger <martink@posteo.de> --- drivers/input/tablet/pegasus_notetaker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index 47de5a81172f..cdf75c989469 100644 --- a/drivers/input/tablet/pegasus_notetaker.c +++ b/drivers/input/tablet/pegasus_notetaker.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Pegasus Mobile Notetaker Pen input tablet driver * -- 2.11.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] input: pegasus_notetaker: add license information 2017-11-18 8:45 [PATCH] input: pegasus_notetaker: add license information Martin Kepplinger @ 2017-11-26 0:42 ` Dmitry Torokhov 2017-11-26 8:59 ` Greg Kroah-Hartman 2017-11-27 7:44 ` [PATCH v2] " Martin Kepplinger 0 siblings, 2 replies; 10+ messages in thread From: Dmitry Torokhov @ 2017-11-26 0:42 UTC (permalink / raw) To: Martin Kepplinger, Greg Kroah-Hartman; +Cc: linux-input, linux-kernel Hi Martin, On Sat, Nov 18, 2017 at 09:45:18AM +0100, Martin Kepplinger wrote: > This adds an SPDX license identifier to this driver I wrote some time back. > > Signed-off-by: Martin Kepplinger <martink@posteo.de> > --- > drivers/input/tablet/pegasus_notetaker.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c > index 47de5a81172f..cdf75c989469 100644 > --- a/drivers/input/tablet/pegasus_notetaker.c > +++ b/drivers/input/tablet/pegasus_notetaker.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0 Should this be GPL-2.0+? The MODULE_LICENSE specifies that the module is "GPL" which in kernel land means GPLv2+. Or we should change the module license to strict "GPLv2"? Also, why do we use C++ -style comments for this? Greg, do you have any plans on dropping MODULE_LICENSE() altogether and generating the appropriate string from SPDX markings in the source? Doing this would prevent mismatches between license notices, SPDX tags and MODULE_LCENSE() strings, which happen very often. > /* > * Pegasus Mobile Notetaker Pen input tablet driver > * Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] input: pegasus_notetaker: add license information 2017-11-26 0:42 ` Dmitry Torokhov @ 2017-11-26 8:59 ` Greg Kroah-Hartman 2017-11-26 11:28 ` Philippe Ombredanne 2017-11-27 7:44 ` [PATCH v2] " Martin Kepplinger 1 sibling, 1 reply; 10+ messages in thread From: Greg Kroah-Hartman @ 2017-11-26 8:59 UTC (permalink / raw) To: Dmitry Torokhov, Philippe Ombredanne Cc: Martin Kepplinger, linux-input, linux-kernel On Sat, Nov 25, 2017 at 04:42:59PM -0800, Dmitry Torokhov wrote: > Hi Martin, > > On Sat, Nov 18, 2017 at 09:45:18AM +0100, Martin Kepplinger wrote: > > This adds an SPDX license identifier to this driver I wrote some time back. > > > > Signed-off-by: Martin Kepplinger <martink@posteo.de> > > --- > > drivers/input/tablet/pegasus_notetaker.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c > > index 47de5a81172f..cdf75c989469 100644 > > --- a/drivers/input/tablet/pegasus_notetaker.c > > +++ b/drivers/input/tablet/pegasus_notetaker.c > > @@ -1,3 +1,4 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > Should this be GPL-2.0+? The MODULE_LICENSE specifies that the module is > "GPL" which in kernel land means GPLv2+. Or we should change the module > license to strict "GPLv2"? That is up to Martin, given that he is the author, as to what he wants to mark this as. Odd that it missed the big "fix up all files with no license information" sweep. Philippe, how did we miss this one? > Also, why do we use C++ -style comments for this? That is what Linus wants, see the thread on lkml in the past few hours for his reasoning here. > Greg, do you have any plans on dropping MODULE_LICENSE() altogether and > generating the appropriate string from SPDX markings in the source? At this time, no, it's not a simple solution as it gets messy quickly (multiple c files make up modulues, what about .h files, etc...) > Doing this would prevent mismatches between license notices, SPDX tags > and MODULE_LCENSE() strings, which happen very often. I agree, but now that we are getting SPDX tags, we can fix up all of the mismatches in MODULE_LICENSE() strings, of which there are a lot. thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] input: pegasus_notetaker: add license information 2017-11-26 8:59 ` Greg Kroah-Hartman @ 2017-11-26 11:28 ` Philippe Ombredanne 2017-11-27 7:55 ` Greg Kroah-Hartman 0 siblings, 1 reply; 10+ messages in thread From: Philippe Ombredanne @ 2017-11-26 11:28 UTC (permalink / raw) To: Greg Kroah-Hartman; +Cc: Dmitry Torokhov, Martin Kepplinger, linux-input, LKML Greg, Martin: On Sun, Nov 26, 2017 at 9:59 AM, Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote: > On Sat, Nov 25, 2017 at 04:42:59PM -0800, Dmitry Torokhov wrote: >> Hi Martin, >> >> On Sat, Nov 18, 2017 at 09:45:18AM +0100, Martin Kepplinger wrote: >> > This adds an SPDX license identifier to this driver I wrote some time back. >> > >> > Signed-off-by: Martin Kepplinger <martink@posteo.de> >> > --- >> > drivers/input/tablet/pegasus_notetaker.c | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c >> > index 47de5a81172f..cdf75c989469 100644 >> > --- a/drivers/input/tablet/pegasus_notetaker.c >> > +++ b/drivers/input/tablet/pegasus_notetaker.c >> > @@ -1,3 +1,4 @@ >> > +// SPDX-License-Identifier: GPL-2.0 >> >> Should this be GPL-2.0+? The MODULE_LICENSE specifies that the module is >> "GPL" which in kernel land means GPLv2+. Or we should change the module >> license to strict "GPLv2"? > > That is up to Martin, given that he is the author, as to what he wants > to mark this as. Odd that it missed the big "fix up all files with no > license information" sweep. > > Philippe, how did we miss this one? It was not missed but instead was set aside by design. drivers/input/tablet/pegasus_notetaker.c does not have (or rather did not have until now) any licensing information beside a MODULE_LICENSE("GPL") and these were left aside as requiring some extra review and the eventual need of a clarification by the author, just as Martin is rightfully doing so just now. >> Doing this would prevent mismatches between license notices, SPDX tags >> and MODULE_LCENSE() strings, which happen very often. > > I agree, but now that we are getting SPDX tags, we can fix up all of the > mismatches in MODULE_LICENSE() strings, of which there are a lot. I said that I would take a stab at it... but I did not attack this yet: Let me get over the ThanksGiving hangover and provide a list this week. I guess there could be three lists in fact: - modules with only a MODULE_LICENSE and no other license info: these could be candidates for adding an SPDX id matching the MODULE_LICENSE - modules updated to use an SPDX id and with a conflicting MODULE_LICENSE: the MODULE_LICENSE should be aligned to match the SPDX id - modules not yet updated to use an SPDX id and with a license notice conflicting with the MODULE_LICENSE: the MODULE_LICENSE should be aligned to match the licensing I'll run a scancode-toolkit scan on the tip of Linus' tree and create a CSV from that to surface these oddities. Unless you prefer me to use another tree like on the USB side for a start. -- Cordially Philippe Ombredanne, the wild licenses tamer ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] input: pegasus_notetaker: add license information 2017-11-26 11:28 ` Philippe Ombredanne @ 2017-11-27 7:55 ` Greg Kroah-Hartman 0 siblings, 0 replies; 10+ messages in thread From: Greg Kroah-Hartman @ 2017-11-27 7:55 UTC (permalink / raw) To: Philippe Ombredanne; +Cc: Dmitry Torokhov, Martin Kepplinger, linux-input, LKML On Sun, Nov 26, 2017 at 12:28:49PM +0100, Philippe Ombredanne wrote: > Greg, Martin: > > On Sun, Nov 26, 2017 at 9:59 AM, Greg Kroah-Hartman > <gregkh@linuxfoundation.org> wrote: > > On Sat, Nov 25, 2017 at 04:42:59PM -0800, Dmitry Torokhov wrote: > >> Hi Martin, > >> > >> On Sat, Nov 18, 2017 at 09:45:18AM +0100, Martin Kepplinger wrote: > >> > This adds an SPDX license identifier to this driver I wrote some time back. > >> > > >> > Signed-off-by: Martin Kepplinger <martink@posteo.de> > >> > --- > >> > drivers/input/tablet/pegasus_notetaker.c | 1 + > >> > 1 file changed, 1 insertion(+) > >> > > >> > diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c > >> > index 47de5a81172f..cdf75c989469 100644 > >> > --- a/drivers/input/tablet/pegasus_notetaker.c > >> > +++ b/drivers/input/tablet/pegasus_notetaker.c > >> > @@ -1,3 +1,4 @@ > >> > +// SPDX-License-Identifier: GPL-2.0 > >> > >> Should this be GPL-2.0+? The MODULE_LICENSE specifies that the module is > >> "GPL" which in kernel land means GPLv2+. Or we should change the module > >> license to strict "GPLv2"? > > > > That is up to Martin, given that he is the author, as to what he wants > > to mark this as. Odd that it missed the big "fix up all files with no > > license information" sweep. > > > > Philippe, how did we miss this one? > > It was not missed but instead was set aside by design. > drivers/input/tablet/pegasus_notetaker.c does not have (or rather did > not have until now) any licensing information beside a > MODULE_LICENSE("GPL") and these were left aside as requiring some > extra review and the eventual need of a clarification by the author, > just as Martin is rightfully doing so just now. Ah, thanks for the explaination, that makes more sense. > >> Doing this would prevent mismatches between license notices, SPDX tags > >> and MODULE_LCENSE() strings, which happen very often. > > > > I agree, but now that we are getting SPDX tags, we can fix up all of the > > mismatches in MODULE_LICENSE() strings, of which there are a lot. > > I said that I would take a stab at it... but I did not attack this yet: > Let me get over the ThanksGiving hangover and provide a list this > week. I guess there could be three lists in fact: > > - modules with only a MODULE_LICENSE and no other license info: these > could be candidates for adding an SPDX id matching the MODULE_LICENSE > > - modules updated to use an SPDX id and with a conflicting > MODULE_LICENSE: the MODULE_LICENSE should be aligned to match the SPDX > id > > - modules not yet updated to use an SPDX id and with a license notice > conflicting with the MODULE_LICENSE: the MODULE_LICENSE should be > aligned to match the licensing > > I'll run a scancode-toolkit scan on the tip of Linus' tree and create > a CSV from that to surface these oddities. > Unless you prefer me to use another tree like on the USB side for a start. Just doing a big sweep of all of 4.15-rc1 to catch the new files / deleted files for the large "here is a first pass of what the spdx id should be" like you did before would be great as we are working with the 4.14 info at the moment. Any additional work on the MODULE_LICENSE stuff would also be wonderful, but might be a bit premature given that we don't have much SPDX coverage at the moment. But, if you want to try out the MODULE_LICENSE stuff, doing it on drivers/usb/ would be great as that should be all finished with SPDX tags now. thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2] input: pegasus_notetaker: add license information 2017-11-26 0:42 ` Dmitry Torokhov 2017-11-26 8:59 ` Greg Kroah-Hartman @ 2017-11-27 7:44 ` Martin Kepplinger 2017-11-27 7:52 ` Greg KH 1 sibling, 1 reply; 10+ messages in thread From: Martin Kepplinger @ 2017-11-27 7:44 UTC (permalink / raw) To: dmitry.torokhov Cc: gregkh, pombredanne, linux-input, linux-kernel, Martin Kepplinger This adds an SPDX license identifier to this driver I wrote some time back. Signed-off-by: Martin Kepplinger <martink@posteo.de> --- Thanks for the feedback. GPL2+ was what I had in mind. My bad. And as I already see a lot of SPDX tags using /**/ comments, I'll use that too. I think if it is hand-written, it shouldn't look too ugly. And in case that's really a no-go, it seems that many many files need to be changed again in any case. martin patch revisions --------------- v2: use /**/ comments and fix the license tag to match MODULE_LICENSE() drivers/input/tablet/pegasus_notetaker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index 47de5a81172f..93fe8ecab767 100644 --- a/drivers/input/tablet/pegasus_notetaker.c +++ b/drivers/input/tablet/pegasus_notetaker.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Pegasus Mobile Notetaker Pen input tablet driver * -- 2.11.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2] input: pegasus_notetaker: add license information 2017-11-27 7:44 ` [PATCH v2] " Martin Kepplinger @ 2017-11-27 7:52 ` Greg KH 2017-11-27 8:02 ` [PATCH v3] " Martin Kepplinger 0 siblings, 1 reply; 10+ messages in thread From: Greg KH @ 2017-11-27 7:52 UTC (permalink / raw) To: Martin Kepplinger; +Cc: dmitry.torokhov, pombredanne, linux-input, linux-kernel On Mon, Nov 27, 2017 at 08:44:01AM +0100, Martin Kepplinger wrote: > This adds an SPDX license identifier to this driver I wrote some time back. > > Signed-off-by: Martin Kepplinger <martink@posteo.de> > --- > > Thanks for the feedback. GPL2+ was what I had in mind. My bad. And as I > already see a lot of SPDX tags using /**/ comments, I'll use that too. > I think if it is hand-written, it shouldn't look too ugly. And in case > that's really a no-go, it seems that many many files need to be changed > again in any case. .h files should be the only ones using /* */, and that is for the ones that break the build if they use // (usually arch-specific and uapi files) So please use // as Linus asked to have done. thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3] input: pegasus_notetaker: add license information 2017-11-27 7:52 ` Greg KH @ 2017-11-27 8:02 ` Martin Kepplinger 2017-11-27 8:07 ` Greg KH 2017-11-27 10:19 ` Philippe Ombredanne 0 siblings, 2 replies; 10+ messages in thread From: Martin Kepplinger @ 2017-11-27 8:02 UTC (permalink / raw) To: gregkh, dmitry.torokhov Cc: pombredanne, linux-input, linux-kernel, Martin Kepplinger This adds an SPDX license identifier to this driver I wrote some time back. Signed-off-by: Martin Kepplinger <martink@posteo.de> --- ok. thanks for the license-cleanup efforts. I think it's important. martin patch revisions --------------- v3: use // comments v2: use /**/ comments and fix the license tag to match MODULE_LICENSE() drivers/input/tablet/pegasus_notetaker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index 47de5a81172f..6d8975f49e76 100644 --- a/drivers/input/tablet/pegasus_notetaker.c +++ b/drivers/input/tablet/pegasus_notetaker.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Pegasus Mobile Notetaker Pen input tablet driver * -- 2.11.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3] input: pegasus_notetaker: add license information 2017-11-27 8:02 ` [PATCH v3] " Martin Kepplinger @ 2017-11-27 8:07 ` Greg KH 2017-11-27 10:19 ` Philippe Ombredanne 1 sibling, 0 replies; 10+ messages in thread From: Greg KH @ 2017-11-27 8:07 UTC (permalink / raw) To: Martin Kepplinger; +Cc: dmitry.torokhov, pombredanne, linux-input, linux-kernel On Mon, Nov 27, 2017 at 09:02:39AM +0100, Martin Kepplinger wrote: > This adds an SPDX license identifier to this driver I wrote some time back. > > Signed-off-by: Martin Kepplinger <martink@posteo.de> > --- Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] input: pegasus_notetaker: add license information 2017-11-27 8:02 ` [PATCH v3] " Martin Kepplinger 2017-11-27 8:07 ` Greg KH @ 2017-11-27 10:19 ` Philippe Ombredanne 1 sibling, 0 replies; 10+ messages in thread From: Philippe Ombredanne @ 2017-11-27 10:19 UTC (permalink / raw) To: Martin Kepplinger; +Cc: Greg Kroah-Hartman, Dmitry Torokhov, linux-input, LKML On Mon, Nov 27, 2017 at 9:02 AM, Martin Kepplinger <martink@posteo.de> wrote: > This adds an SPDX license identifier to this driver I wrote some time back. > > Signed-off-by: Martin Kepplinger <martink@posteo.de> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> FWIW! -- Cordially Philippe Ombredanne ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-11-27 10:19 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-11-18 8:45 [PATCH] input: pegasus_notetaker: add license information Martin Kepplinger 2017-11-26 0:42 ` Dmitry Torokhov 2017-11-26 8:59 ` Greg Kroah-Hartman 2017-11-26 11:28 ` Philippe Ombredanne 2017-11-27 7:55 ` Greg Kroah-Hartman 2017-11-27 7:44 ` [PATCH v2] " Martin Kepplinger 2017-11-27 7:52 ` Greg KH 2017-11-27 8:02 ` [PATCH v3] " Martin Kepplinger 2017-11-27 8:07 ` Greg KH 2017-11-27 10:19 ` Philippe Ombredanne
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).