public inbox for linux-spdx@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/crc32: add SPDX license identifier
@ 2025-05-14  5:24 Eric Biggers
  2025-05-14  6:11 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Biggers @ 2025-05-14  5:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ard Biesheuvel, linux-spdx, Thomas Gleixner

From: Eric Biggers <ebiggers@google.com>

lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX
conversion because of the nonstandard explanation of the license.
However, crc32.c clearly states that it's licensed under the GNU General
Public License, Version 2.  And the comment in crc32.h clearly indicates
that it's meant to have the same license as crc32.c.  Therefore, apply
SPDX-License-Identifier: GPL-2.0-only to both files.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 include/linux/crc32.h | 5 +----
 lib/crc32.c           | 4 +---
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/include/linux/crc32.h b/include/linux/crc32.h
index 69c2e8bb37829..569dc13f139fc 100644
--- a/include/linux/crc32.h
+++ b/include/linux/crc32.h
@@ -1,9 +1,6 @@
-/*
- * crc32.h
- * See linux/lib/crc32.c for license and changes
- */
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef _LINUX_CRC32_H
 #define _LINUX_CRC32_H
 
 #include <linux/types.h>
 #include <linux/bitrev.h>
diff --git a/lib/crc32.c b/lib/crc32.c
index fddd424ff2245..e690026f44f7a 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -1,5 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Aug 8, 2011 Bob Pearson with help from Joakim Tjernlund and George Spelvin
  * cleaned up code to current version of sparse and added the slicing-by-8
  * algorithm to the closely similar existing slicing-by-4 algorithm.
  *
@@ -17,13 +18,10 @@
  * seed as an argument, and doesn't xor at the end.  Then individual
  * users can do whatever they need.
  *   drivers/net/smc9194.c uses seed ~0, doesn't xor with ~0.
  *   fs/jffs2 uses seed 0, doesn't xor with ~0.
  *   fs/partitions/efi.c uses seed ~0, xor's with ~0.
- *
- * This source code is licensed under the GNU General Public License,
- * Version 2.  See the file COPYING for more details.
  */
 
 /* see: Documentation/staging/crc32.rst for a description of algorithms */
 
 #include <linux/crc32.h>

base-commit: 3937f6db6e932c560a0f9ee2cd2a4fdcc314dadf
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] lib/crc32: add SPDX license identifier
  2025-05-14  5:24 [PATCH] lib/crc32: add SPDX license identifier Eric Biggers
@ 2025-05-14  6:11 ` Thomas Gleixner
  2025-05-14  6:14   ` Eric Biggers
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2025-05-14  6:11 UTC (permalink / raw)
  To: Eric Biggers, linux-kernel; +Cc: Ard Biesheuvel, linux-spdx

On Tue, May 13 2025 at 22:24, Eric Biggers wrote:

> From: Eric Biggers <ebiggers@google.com>
>
> lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX
> conversion because of the nonstandard explanation of the license.
> However, crc32.c clearly states that it's licensed under the GNU General
> Public License, Version 2.  And the comment in crc32.h clearly indicates
> that it's meant to have the same license as crc32.c.  Therefore, apply
> SPDX-License-Identifier: GPL-2.0-only to both files.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] lib/crc32: add SPDX license identifier
  2025-05-14  6:11 ` Thomas Gleixner
@ 2025-05-14  6:14   ` Eric Biggers
  2025-05-14  7:39     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Biggers @ 2025-05-14  6:14 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, Ard Biesheuvel, linux-spdx

On Wed, May 14, 2025 at 08:11:40AM +0200, Thomas Gleixner wrote:
> On Tue, May 13 2025 at 22:24, Eric Biggers wrote:
> 
> > From: Eric Biggers <ebiggers@google.com>
> >
> > lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX
> > conversion because of the nonstandard explanation of the license.
> > However, crc32.c clearly states that it's licensed under the GNU General
> > Public License, Version 2.  And the comment in crc32.h clearly indicates
> > that it's meant to have the same license as crc32.c.  Therefore, apply
> > SPDX-License-Identifier: GPL-2.0-only to both files.
> >
> > Signed-off-by: Eric Biggers <ebiggers@google.com>
> 
> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

Thanks.

I forgot to mention: I'm planning to take this patch through the crc tree.

- Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] lib/crc32: add SPDX license identifier
  2025-05-14  6:14   ` Eric Biggers
@ 2025-05-14  7:39     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2025-05-14  7:39 UTC (permalink / raw)
  To: Eric Biggers; +Cc: Thomas Gleixner, linux-kernel, Ard Biesheuvel, linux-spdx

On Tue, May 13, 2025 at 11:14:25PM -0700, Eric Biggers wrote:
> On Wed, May 14, 2025 at 08:11:40AM +0200, Thomas Gleixner wrote:
> > On Tue, May 13 2025 at 22:24, Eric Biggers wrote:
> > 
> > > From: Eric Biggers <ebiggers@google.com>
> > >
> > > lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX
> > > conversion because of the nonstandard explanation of the license.
> > > However, crc32.c clearly states that it's licensed under the GNU General
> > > Public License, Version 2.  And the comment in crc32.h clearly indicates
> > > that it's meant to have the same license as crc32.c.  Therefore, apply
> > > SPDX-License-Identifier: GPL-2.0-only to both files.
> > >
> > > Signed-off-by: Eric Biggers <ebiggers@google.com>
> > 
> > Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
> 
> Thanks.
> 
> I forgot to mention: I'm planning to take this patch through the crc tree.

Great!

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-14  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  5:24 [PATCH] lib/crc32: add SPDX license identifier Eric Biggers
2025-05-14  6:11 ` Thomas Gleixner
2025-05-14  6:14   ` Eric Biggers
2025-05-14  7:39     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox