* [PATCH 1/2] zsmalloc: fix SPDX license identifier
@ 2026-11-19 4:13 Sergey Senozhatsky
2026-11-19 4:13 ` [PATCH 2/2] zram: use " Sergey Senozhatsky
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sergey Senozhatsky @ 2026-11-19 4:13 UTC (permalink / raw)
To: Andrew Morton
Cc: Minchan Kim, linux-kernel, linux-block, linux-mm,
Sergey Senozhatsky
zsmalloc is released under MODULE_LICENSE("Dual BSD/GPL") so
the existing SPDX license identifier is incorrect.
Use the matching identifier, (GPL-2.0-only OR BSD-3-Clause),
and drop the license text that it replaces. The copyright
notices stay as they are.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
include/linux/zsmalloc.h | 7 +------
mm/zsmalloc.c | 8 +-------
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/include/linux/zsmalloc.h b/include/linux/zsmalloc.h
index 8971eef333ba..3232bc9c33b2 100644
--- a/include/linux/zsmalloc.h
+++ b/include/linux/zsmalloc.h
@@ -1,14 +1,9 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
* zsmalloc memory allocator
*
* Copyright (C) 2011 Nitin Gupta
* Copyright (C) 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the license that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
*/
#ifndef _ZS_MALLOC_H_
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 4a6ec43f418b..f571b3c9e9ca 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1,16 +1,10 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
/*
* zsmalloc memory allocator
*
* Copyright (C) 2011 Nitin Gupta
* Copyright (C) 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the license that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
--
2.56.1.708.g77570a6a1d-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] zram: use SPDX license identifier
2026-11-19 4:13 [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
@ 2026-11-19 4:13 ` Sergey Senozhatsky
2026-11-19 5:29 ` + zram-use-spdx-license-identifier.patch added to mm-nonmm-unstable branch Andrew Morton
2026-11-19 4:29 ` [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
2026-11-19 5:29 ` + zsmalloc-fix-spdx-license-identifier.patch added to mm-nonmm-unstable branch Andrew Morton
2 siblings, 1 reply; 5+ messages in thread
From: Sergey Senozhatsky @ 2026-11-19 4:13 UTC (permalink / raw)
To: Andrew Morton
Cc: Minchan Kim, linux-kernel, linux-block, linux-mm,
Sergey Senozhatsky
Replace the license text with the matching SPDX identifier,
(GPL-2.0-only OR BSD-3-Clause). The copyright notices stay
as they are.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
drivers/block/zram/zram_drv.c | 8 +-------
drivers/block/zram/zram_drv.h | 8 +-------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 946b625761f8..90f06523bb8b 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -1,15 +1,9 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
/*
* Compressed RAM block device
*
* Copyright (C) 2008, 2009, 2010 Nitin Gupta
* 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the licence that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
- *
*/
#define pr_fmt(fmt) "zram: " fmt
diff --git a/drivers/block/zram/zram_drv.h b/drivers/block/zram/zram_drv.h
index d64c99b74214..724f8ce6709b 100644
--- a/drivers/block/zram/zram_drv.h
+++ b/drivers/block/zram/zram_drv.h
@@ -1,15 +1,9 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
* Compressed RAM block device
*
* Copyright (C) 2008, 2009, 2010 Nitin Gupta
* 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the licence that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
- *
*/
#ifndef _ZRAM_DRV_H_
--
2.56.1.708.g77570a6a1d-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread
* + zram-use-spdx-license-identifier.patch added to mm-nonmm-unstable branch
2026-11-19 4:13 ` [PATCH 2/2] zram: use " Sergey Senozhatsky
@ 2026-11-19 5:29 ` Andrew Morton
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2026-11-19 5:29 UTC (permalink / raw)
To: mm-commits, minchan, senozhatsky, akpm
The patch titled
Subject: zram: use SPDX license identifier
has been added to the -mm mm-nonmm-unstable branch. Its filename is
zram-use-spdx-license-identifier.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zram-use-spdx-license-identifier.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Sergey Senozhatsky <senozhatsky@chromium.org>
Subject: zram: use SPDX license identifier
Date: Thu, 19 Nov 2026 13:13:52 +0900
Replace the license text with the matching SPDX identifier, (GPL-2.0-only
OR BSD-3-Clause). The copyright notices stay as they are.
Link: https://patch.msgid.link/80d88d3679dd0b67afe634562e1520aac6686a91.1795061575.git.senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Minchan Kim <minchan@kernel.org>
drivers/block/zram/zram_drv.c | 8 +-------
drivers/block/zram/zram_drv.h | 8 +-------
2 files changed, 2 insertions(+), 14 deletions(-)
--- a/drivers/block/zram/zram_drv.c~zram-use-spdx-license-identifier
+++ a/drivers/block/zram/zram_drv.c
@@ -1,15 +1,9 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
/*
* Compressed RAM block device
*
* Copyright (C) 2008, 2009, 2010 Nitin Gupta
* 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the licence that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
- *
*/
#define pr_fmt(fmt) "zram: " fmt
--- a/drivers/block/zram/zram_drv.h~zram-use-spdx-license-identifier
+++ a/drivers/block/zram/zram_drv.h
@@ -1,15 +1,9 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
* Compressed RAM block device
*
* Copyright (C) 2008, 2009, 2010 Nitin Gupta
* 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the licence that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
- *
*/
#ifndef _ZRAM_DRV_H_
_
Patches currently in -mm which might be from senozhatsky@chromium.org are
zram-prefix-backends-printk-s.patch
zram-remove-debugfs-entry-on-init-failure.patch
zram-reset-writeback-state-in-zram_reset_device.patch
zram-move-mark_slot_accessed-under-existing-slot-lock-sections.patch
zram-remove-stale-warn_on-from-zram_read_page.patch
zram-zstd-do-not-allocate-empty-c-d-dictionaries.patch
zram-lz4hc-pre-initialize-dictionary-stream-in-setup_params.patch
zram-lz4-use-lz4_decompress_safe_usingdict.patch
zram-lz4hc-use-lz4_decompress_safe_usingdict.patch
zram-zstd-do-not-use-kvzalloc-for-zstd-allocations.patch
zram-split-zcomp-into-separate-r-w-streams.patch
zram-introduce-shared-decompression-streams.patch
zram-allocate-bounce-buffer-for-spanning-objects.patch
zram-borrow-idle-decompression-streams-in-exclusive-mode.patch
zram-use-a-singleton-compression-context-for-recompression.patch
zram-drop-stale-comment-in-write_incompressible_page.patch
zram-drop-get_slot_handle-and-set_slot_handle.patch
zsmalloc-return-handle-from-obj_allocated.patch
zsmalloc-switch-handle-type-to-struct-zs_handle.patch
zram-check-mem_limit-before-allocating-zsmalloc-object.patch
zram-allocate-zsmalloc-object-under-slot-lock.patch
zswap-do-not-free-the-entry-if-its-pool-is-null.patch
zsmalloc-encode-1-based-obj_idx-so-valid-obj-is-never-0.patch
zsmalloc-embed-struct-zs_handle-into-zram-and-zswap-entries.patch
zsmalloc-fold-zs_obj_write-into-zs_store.patch
zsmalloc-populate-new-zspage-outside-class-lock-in-zs_store.patch
zram-fix-quadratic-writeback-bitmap-search.patch
zsmalloc-fix-spdx-license-identifier.patch
zram-use-spdx-license-identifier.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] zsmalloc: fix SPDX license identifier
2026-11-19 4:13 [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
2026-11-19 4:13 ` [PATCH 2/2] zram: use " Sergey Senozhatsky
@ 2026-11-19 4:29 ` Sergey Senozhatsky
2026-11-19 5:29 ` + zsmalloc-fix-spdx-license-identifier.patch added to mm-nonmm-unstable branch Andrew Morton
2 siblings, 0 replies; 5+ messages in thread
From: Sergey Senozhatsky @ 2026-11-19 4:29 UTC (permalink / raw)
To: Sergey Senozhatsky
Cc: Andrew Morton, Minchan Kim, linux-kernel, linux-block, linux-mm
On (26/11/19 13:13), Sergey Senozhatsky wrote:
[..]
> +++ b/mm/zsmalloc.c
> @@ -1,16 +1,10 @@
> -// SPDX-License-Identifier: GPL-2.0-or-later
> +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
So this was introduced by commit 91d0ec834786 ("replace kmap_atomic
with kmap_local_page"). It doesn't look like I have reviewed that
patch [1]. Somehow. It would have been difficult to spot that
SPDX one-liner among all the kmap changes anyway.
[1] https://lkml.kernel.org/r/20241001175358.12970-1-quic_pintu@quicinc.com
^ permalink raw reply [flat|nested] 5+ messages in thread* + zsmalloc-fix-spdx-license-identifier.patch added to mm-nonmm-unstable branch
2026-11-19 4:13 [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
2026-11-19 4:13 ` [PATCH 2/2] zram: use " Sergey Senozhatsky
2026-11-19 4:29 ` [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
@ 2026-11-19 5:29 ` Andrew Morton
2 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2026-11-19 5:29 UTC (permalink / raw)
To: mm-commits, minchan, senozhatsky, akpm
The patch titled
Subject: zsmalloc: fix SPDX license identifier
has been added to the -mm mm-nonmm-unstable branch. Its filename is
zsmalloc-fix-spdx-license-identifier.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zsmalloc-fix-spdx-license-identifier.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Sergey Senozhatsky <senozhatsky@chromium.org>
Subject: zsmalloc: fix SPDX license identifier
Date: Thu, 19 Nov 2026 13:13:51 +0900
zsmalloc is released under MODULE_LICENSE("Dual BSD/GPL") so the existing
SPDX license identifier is incorrect.
Use the matching identifier, (GPL-2.0-only OR BSD-3-Clause), and drop the
license text that it replaces. The copyright notices stay as they are.
Link: https://patch.msgid.link/39f6056e0c8834fc3eca2001fcb44f3b6048f74d.1795061575.git.senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Minchan Kim <minchan@kernel.org>
include/linux/zsmalloc.h | 7 +------
mm/zsmalloc.c | 8 +-------
2 files changed, 2 insertions(+), 13 deletions(-)
--- a/include/linux/zsmalloc.h~zsmalloc-fix-spdx-license-identifier
+++ a/include/linux/zsmalloc.h
@@ -1,14 +1,9 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
* zsmalloc memory allocator
*
* Copyright (C) 2011 Nitin Gupta
* Copyright (C) 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the license that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
*/
#ifndef _ZS_MALLOC_H_
--- a/mm/zsmalloc.c~zsmalloc-fix-spdx-license-identifier
+++ a/mm/zsmalloc.c
@@ -1,16 +1,10 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
/*
* zsmalloc memory allocator
*
* Copyright (C) 2011 Nitin Gupta
* Copyright (C) 2012, 2013 Minchan Kim
- *
- * This code is released using a dual license strategy: BSD/GPL
- * You can choose the license that better fits your requirements.
- *
- * Released under the terms of 3-clause BSD License
- * Released under the terms of GNU General Public License Version 2.0
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
_
Patches currently in -mm which might be from senozhatsky@chromium.org are
zram-prefix-backends-printk-s.patch
zram-remove-debugfs-entry-on-init-failure.patch
zram-reset-writeback-state-in-zram_reset_device.patch
zram-move-mark_slot_accessed-under-existing-slot-lock-sections.patch
zram-remove-stale-warn_on-from-zram_read_page.patch
zram-zstd-do-not-allocate-empty-c-d-dictionaries.patch
zram-lz4hc-pre-initialize-dictionary-stream-in-setup_params.patch
zram-lz4-use-lz4_decompress_safe_usingdict.patch
zram-lz4hc-use-lz4_decompress_safe_usingdict.patch
zram-zstd-do-not-use-kvzalloc-for-zstd-allocations.patch
zram-split-zcomp-into-separate-r-w-streams.patch
zram-introduce-shared-decompression-streams.patch
zram-allocate-bounce-buffer-for-spanning-objects.patch
zram-borrow-idle-decompression-streams-in-exclusive-mode.patch
zram-use-a-singleton-compression-context-for-recompression.patch
zram-drop-stale-comment-in-write_incompressible_page.patch
zram-drop-get_slot_handle-and-set_slot_handle.patch
zsmalloc-return-handle-from-obj_allocated.patch
zsmalloc-switch-handle-type-to-struct-zs_handle.patch
zram-check-mem_limit-before-allocating-zsmalloc-object.patch
zram-allocate-zsmalloc-object-under-slot-lock.patch
zswap-do-not-free-the-entry-if-its-pool-is-null.patch
zsmalloc-encode-1-based-obj_idx-so-valid-obj-is-never-0.patch
zsmalloc-embed-struct-zs_handle-into-zram-and-zswap-entries.patch
zsmalloc-fold-zs_obj_write-into-zs_store.patch
zsmalloc-populate-new-zspage-outside-class-lock-in-zs_store.patch
zram-fix-quadratic-writeback-bitmap-search.patch
zsmalloc-fix-spdx-license-identifier.patch
zram-use-spdx-license-identifier.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-19 5:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 4:13 [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
2026-11-19 4:13 ` [PATCH 2/2] zram: use " Sergey Senozhatsky
2026-11-19 5:29 ` + zram-use-spdx-license-identifier.patch added to mm-nonmm-unstable branch Andrew Morton
2026-11-19 4:29 ` [PATCH 1/2] zsmalloc: fix SPDX license identifier Sergey Senozhatsky
2026-11-19 5:29 ` + zsmalloc-fix-spdx-license-identifier.patch added to mm-nonmm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.