Skip to contentSkip to conversation

input: pegasus_notetaker: add license information

PATCH Superseded Martin Kepplinger 4 participants 10 messages Nov 18, 2017 – Nov 27, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: pegasus_notetaker: add license information

This adds an SPDX license identifier to this driver I wrote some time back.

---
 drivers/input/tablet/pegasus_notetaker.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..cdf75c989469 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Pegasus Mobile Notetaker Pen input tablet driver
  *
Signature · 1 line
2.11.0
maintainer
#1 lore raw

Hi Martin,

drivers/input/tablet/pegasus_notetaker.c line 1

Quoted 13 lines · Martin Kepplinger

This adds an SPDX license identifier to this driver I wrote some time back.

---
 drivers/input/tablet/pegasus_notetaker.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..cdf75c989469 100644
@@ -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.

drivers/input/tablet/pegasus_notetaker.c line 4

Quoted 3 lines
drivers/input/tablet/pegasus_notetaker.c +0 -0
 /*
  * Pegasus Mobile Notetaker Pen input tablet driver
  *

Thanks.

Signature · 1 line
Dmitry
#2 lore raw
Quoted 10 lines · Dmitry Torokhov

Hi Martin,

Quoted 7 lines · Martin Kepplinger

This adds an SPDX license identifier to this driver I wrote some time back.

---
 drivers/input/tablet/pegasus_notetaker.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 10 lines

drivers/input/tablet/pegasus_notetaker.c line 1

Quoted 6 lines
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..cdf75c989469 100644
@@ -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?

Quoted 1 line

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.

Quoted 2 lines

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...)

Quoted 2 lines

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

#3 lore raw

Greg, Martin:

Quoted 22 lines · Greg Kroah-Hartman
Quoted 10 lines · Dmitry Torokhov

Hi Martin,

Quoted 7 lines · Martin Kepplinger

This adds an SPDX license identifier to this driver I wrote some time back.

---
 drivers/input/tablet/pegasus_notetaker.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 10 lines

drivers/input/tablet/pegasus_notetaker.c line 1

Quoted 6 lines
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..cdf75c989469 100644
@@ -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"?

Quoted 5 lines

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.

Quoted 5 lines
Quoted 2 lines

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.

Signature · 2 lines
Cordially
Philippe Ombredanne, the wild licenses tamer
#4 lore raw
Quoted 30 lines · Philippe Ombredanne

Greg, Martin:

Quoted 26 lines · Greg Kroah-Hartman
Quoted 10 lines · Dmitry Torokhov

Hi Martin,

Quoted 7 lines · Martin Kepplinger

This adds an SPDX license identifier to this driver I wrote some time back.

---
 drivers/input/tablet/pegasus_notetaker.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 10 lines

drivers/input/tablet/pegasus_notetaker.c line 1

Quoted 6 lines
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..cdf75c989469 100644
@@ -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.

Quoted 8 lines
Quoted 1 line

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.

Quoted 17 lines
Quoted 5 lines
Quoted 2 lines

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

Quoted 7 lines

- 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

#5 lore raw

PATCH v2 1/1 input: pegasus_notetaker: add license information

In reply to Dmitry Torokhov

This adds an SPDX license identifier to this driver I wrote some time back.

---

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(+)
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..93fe8ecab767 100644
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Pegasus Mobile Notetaker Pen input tablet driver
  *
Signature · 1 line
2.11.0
#6 lore raw
Quoted 10 lines · Martin Kepplinger

This adds an SPDX license identifier to this driver I wrote some time back.

---

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

#7 lore raw

PATCH v3 1/1 input: pegasus_notetaker: add license information

This adds an SPDX license identifier to this driver I wrote some time back.

---

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(+)
drivers/input/tablet/pegasus_notetaker.c +1 -0
index 47de5a81172f..6d8975f49e76 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Pegasus Mobile Notetaker Pen input tablet driver
  *
Signature · 1 line
2.11.0