[PATCH v2] kernel: Add SPDX-License-Identifier lines

Tim Bird
2026-01-19T22:40:51Z

Add SPDX-License-Identifier lines to some old kernel
files.

Signed-off-by: Tim Bird <tim.bird@sony.com>
Acked-by: Karim Yaghmour <karim.yaghmour@opersys.com>
--
V1 -> V2 Use GPL-2.0-or-later for cpu.c
---
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..a7a1cf8ea8e0 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/* 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