Re: [PATCH] kernel: add SPDX-License-Identifier lines

Rusty Russell
2026-01-19T05:32:33Z

Actually, all my kernel licenses were intended "GPL v2 or any later version".

Sorry if that makes trouble for your licensing theater group!

Cheers,
Rusty.

Tim Bird <tim.bird@sony.com> writes:
> Add SPDX-License-Identifier lines to some old kernel
> files.
>
> Signed-off-by: Tim Bird <tim.bird@sony.com>
> ---
> kernel/cpu.c | 3 +--
> kernel/relay.c | 3 +--
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/kernel/cpu.c b/kernel/cpu.c
> index 8df2d773fe3b..5185c0be847a 100644
> --- a/kernel/cpu.c
> +++ b/kernel/cpu.c
> @@ -1,7 +1,6 @@
> +// SPDX-License-Identifier: GPL-2.0
> /* CPU control.
> * (C) 2001, 2002, 2003, 2004 Rusty Russell
> - *
> - * This code is licenced under the GPL.
> */
> #include <linux/sched/mm.h>
> #include <linux/proc_fs.h>
> diff --git a/kernel/relay.c b/kernel/relay.c
> index e36f6b926f7f..6ed6bc929bf9 100644
> --- a/kernel/relay.c
> +++ b/kernel/relay.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
> /*
> * Public API and common code for kernel->userspace relay file support.
> *
> @@ -9,8 +10,6 @@
> * Moved to kernel/relay.c by Paul Mundt, 2006.
> * November 2006 - CPU hotplug support by Mathieu Desnoyers
> * (mathieu.desnoyers@polymtl.ca)
> - *
> - * This file is released under the GPL.
> */
> #include <linux/errno.h>
> #include <linux/stddef.h>
> --
> 2.43.0