Remove the public domain notices and add SPDX license identifiers. Change MODULE_LICENSE from "GPL" to "Dual BSD/GPL" because 0BSD should count as a BSD license variant here. The switch to 0BSD was done in the upstream XZ Embedded project because public domain has (real or perceived) legal issues in some jurisdictions.
Unified · Split
| @@ -1,10 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: 0BSD */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd | 4 | * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | #ifndef DECOMPRESS_UNXZ_H | 9 | #ifndef DECOMPRESS_UNXZ_H |
| @@ -1,11 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: 0BSD */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * XZ decompressor | 4 | * XZ decompressor |
| 3 | * | 5 | * |
| 4 | * Authors: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Authors: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * Igor Pavlov <https://7-zip.org/> | 7 | * Igor Pavlov <https://7-zip.org/> |
| 6 | * | ||
| 7 | * This file has been put into the public domain. | ||
| 8 | * You can do whatever you want with this file. | ||
| 9 | */ | 8 | */ |
| 10 | 9 | ||
| 11 | #ifndef XZ_H | 10 | #ifndef XZ_H |
| @@ -1,10 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd | 4 | * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | /* | 9 | /* |
| @@ -1,11 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * CRC32 using the polynomial from IEEE-802.3 | 4 | * CRC32 using the polynomial from IEEE-802.3 |
| 3 | * | 5 | * |
| 4 | * Authors: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Authors: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * Igor Pavlov <https://7-zip.org/> | 7 | * Igor Pavlov <https://7-zip.org/> |
| 6 | * | ||
| 7 | * This file has been put into the public domain. | ||
| 8 | * You can do whatever you want with this file. | ||
| 9 | */ | 8 | */ |
| 10 | 9 | ||
| 11 | /* | 10 | /* |
| @@ -1,11 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Branch/Call/Jump (BCJ) filter decoders | 4 | * Branch/Call/Jump (BCJ) filter decoders |
| 3 | * | 5 | * |
| 4 | * Authors: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Authors: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * Igor Pavlov <https://7-zip.org/> | 7 | * Igor Pavlov <https://7-zip.org/> |
| 6 | * | ||
| 7 | * This file has been put into the public domain. | ||
| 8 | * You can do whatever you want with this file. | ||
| 9 | */ | 8 | */ |
| 10 | 9 | ||
| 11 | #include "xz_private.h" | 10 | #include "xz_private.h" |
| @@ -1,11 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * LZMA2 decoder | 4 | * LZMA2 decoder |
| 3 | * | 5 | * |
| 4 | * Authors: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Authors: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * Igor Pavlov <https://7-zip.org/> | 7 | * Igor Pavlov <https://7-zip.org/> |
| 6 | * | ||
| 7 | * This file has been put into the public domain. | ||
| 8 | * You can do whatever you want with this file. | ||
| 9 | */ | 8 | */ |
| 10 | 9 | ||
| 11 | #include "xz_private.h" | 10 | #include "xz_private.h" |
| @@ -1,10 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * .xz Stream decoder | 4 | * .xz Stream decoder |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | #include "xz_private.h" | 9 | #include "xz_private.h" |
| @@ -1,10 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * XZ decoder module information | 4 | * XZ decoder module information |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | #include <linux/module.h> | 9 | #include <linux/module.h> |
| @@ -25,9 +24,4 @@ EXPORT_SYMBOL(xz_dec_microlzma_end); · 14 unmodified lines | |||
| 25 | MODULE_DESCRIPTION("XZ decompressor"); | 24 | MODULE_DESCRIPTION("XZ decompressor"); |
| 26 | MODULE_VERSION("1.1"); | 25 | MODULE_VERSION("1.1"); |
| 27 | MODULE_AUTHOR("Lasse Collin <lasse.collin@tukaani.org> and Igor Pavlov"); | 26 | MODULE_AUTHOR("Lasse Collin <lasse.collin@tukaani.org> and Igor Pavlov"); |
| 28 | 27 | MODULE_LICENSE("Dual BSD/GPL"); | |
| 29 | /* | ||
| 30 | * This code is in the public domain, but in Linux it's simplest to just | ||
| 31 | * say it's GPL and consider the authors as the copyright holders. | ||
| 32 | */ | ||
| 33 | MODULE_LICENSE("GPL"); | ||
| @@ -1,10 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: 0BSD | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * XZ decoder tester | 4 | * XZ decoder tester |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
| @@ -212,9 +211,4 @@ module_exit(xz_dec_test_exit); · 201 unmodified lines | |||
| 212 | MODULE_DESCRIPTION("XZ decompressor tester"); | 211 | MODULE_DESCRIPTION("XZ decompressor tester"); |
| 213 | MODULE_VERSION("1.0"); | 212 | MODULE_VERSION("1.0"); |
| 214 | MODULE_AUTHOR("Lasse Collin <lasse.collin@tukaani.org>"); | 213 | MODULE_AUTHOR("Lasse Collin <lasse.collin@tukaani.org>"); |
| 215 | 214 | MODULE_LICENSE("Dual BSD/GPL"); | |
| 216 | /* | ||
| 217 | * This code is in the public domain, but in Linux it's simplest to just | ||
| 218 | * say it's GPL and consider the authors as the copyright holders. | ||
| 219 | */ | ||
| 220 | MODULE_LICENSE("GPL"); | ||
| @@ -1,11 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: 0BSD */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * LZMA2 definitions | 4 | * LZMA2 definitions |
| 3 | * | 5 | * |
| 4 | * Authors: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Authors: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * Igor Pavlov <https://7-zip.org/> | 7 | * Igor Pavlov <https://7-zip.org/> |
| 6 | * | ||
| 7 | * This file has been put into the public domain. | ||
| 8 | * You can do whatever you want with this file. | ||
| 9 | */ | 8 | */ |
| 10 | 9 | ||
| 11 | #ifndef XZ_LZMA2_H | 10 | #ifndef XZ_LZMA2_H |
| @@ -1,10 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: 0BSD */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Private includes and definitions | 4 | * Private includes and definitions |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | #ifndef XZ_PRIVATE_H | 9 | #ifndef XZ_PRIVATE_H |
| @@ -1,10 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: 0BSD */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Definitions for handling the .xz file format | 4 | * Definitions for handling the .xz file format |
| 3 | * | 5 | * |
| 4 | * Author: Lasse Collin <lasse.collin@tukaani.org> | 6 | * Author: Lasse Collin <lasse.collin@tukaani.org> |
| 5 | * | ||
| 6 | * This file has been put into the public domain. | ||
| 7 | * You can do whatever you want with this file. | ||
| 8 | */ | 7 | */ |
| 9 | 8 | ||
| 10 | #ifndef XZ_STREAM_H | 9 | #ifndef XZ_STREAM_H |
| @@ -1,13 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: 0BSD | ||
| 2 | # | 3 | # |
| 3 | # This is a wrapper for xz to compress the kernel image using appropriate | 4 | # This is a wrapper for xz to compress the kernel image using appropriate |
| 4 | # compression options depending on the architecture. | 5 | # compression options depending on the architecture. |
| 5 | # | 6 | # |
| 6 | # Author: Lasse Collin <lasse.collin@tukaani.org> | 7 | # Author: Lasse Collin <lasse.collin@tukaani.org> |
| 7 | # | ||
| 8 | # This file has been put into the public domain. | ||
| 9 | # You can do whatever you want with this file. | ||
| 10 | # | ||
| 11 | 8 | ||
| 12 | BCJ= | 9 | BCJ= |
| 13 | LZMA2OPTS= | 10 | LZMA2OPTS= |