Skip to contentSkip to conversation

lib/crc64.c: add MODULE_LICENSE("GPL")

PATCH In review Coly Li 2 participants 3 messages May 22, 2018

Subsystems (2)
lore
Share & tools
lore

Coly Li

author
#0 lore raw

PATCH 1/1 lib/crc64.c: add MODULE_LICENSE("GPL")

This patch adds MODULE_LICENSE("GPL") to lib/crc64.c to remove a compiling warninng.

Cc Andy Shevchenko <[email protected]>
---
 lib/crc64.c | 1 +
 1 file changed, 1 insertion(+)
lib/crc64.c +1 -0
index ed0ffac7b26a..586e46684ee8 100644
@@ -135,3 +135,4 @@ uint64_t crc64(const void *data, size_t len)
 EXPORT_SYMBOL_GPL(crc64);
 
 MODULE_DESCRIPTION("CRC64 calculations");
+MODULE_LICENSE("GPL");
Signature · 1 line
2.16.3
#1 lore raw
Quoted 3 lines · Coly Li

This patch adds MODULE_LICENSE("GPL") to lib/crc64.c to remove a compiling
warninng.

I have no opinion about this. Code has a top description from which it has been taken / derived, so, I dunno if GPL is what it really is.

In any case it's probably worth to add SPDX header as well.

Quoted 16 lines
Cc Andy Shevchenko <[email protected]>
---
 lib/crc64.c | 1 +
 1 file changed, 1 insertion(+)
lib/crc64.c +1 -0
index ed0ffac7b26a..586e46684ee8 100644
@@ -135,3 +135,4 @@ uint64_t crc64(const void *data, size_t len)
 EXPORT_SYMBOL_GPL(crc64);
 
 MODULE_DESCRIPTION("CRC64 calculations");
+MODULE_LICENSE("GPL");
Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy
author
#2 lore raw
Quoted 10 lines · Andy Shevchenko
Quoted 3 lines · Coly Li

This patch adds MODULE_LICENSE("GPL") to lib/crc64.c to remove a compiling
warninng.

I have no opinion about this. Code has a top description from which it has been taken / derived, so, I dunno if GPL is what it really is.

In any case it's probably worth to add SPDX header as well.

Hmm, there is a warning complains no MODULE_LICENSE() in lib/crc64.c, when I compile a kernel for testing. The purpose is just to kill a compiler warning.

And sure, I will post an update version with SPDX header.

Thanks for the hint :-)

Coly Li

Quoted 17 lines
Quoted 16 lines
Cc Andy Shevchenko <[email protected]>
---
 lib/crc64.c | 1 +
 1 file changed, 1 insertion(+)
lib/crc64.c +1 -0
index ed0ffac7b26a..586e46684ee8 100644
@@ -135,3 +135,4 @@ uint64_t crc64(const void *data, size_t len)
 EXPORT_SYMBOL_GPL(crc64);
 
 MODULE_DESCRIPTION("CRC64 calculations");
+MODULE_LICENSE("GPL");