Skip to contentSkip to conversation

kernel: debug: Convert to SPDX identifier

PATCH Superseded Cai Huoqing 2 participants 2 messages Aug 22, 2021 – Sep 6, 2021 KGDB / KDB /debug_core

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: debug: Convert to SPDX identifier

use SPDX-License-Identifier instead of a verbose license text

---
 kernel/debug/debug_core.c | 5 +----
 kernel/debug/gdbstub.c    | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
kernel/debug/debug_core.c +1 -4
index b4aa6bb6b2bd..da06a5553835 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debug Core
  *
@@ -22,10 +23,6 @@
  *
  * Original KGDB stub: David Grothe <[email protected]>,
  * Tigran Aivazian <[email protected]>
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2. This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #define pr_fmt(fmt) "KGDB: " fmt
kernel/debug/gdbstub.c +1 -4
index b6f28fad4307..9d34d2364b5a 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Kernel Debug Core
  *
@@ -22,10 +23,6 @@
  *
  * Original KGDB stub: David Grothe <[email protected]>,
  * Tigran Aivazian <[email protected]>
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2. This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <linux/kernel.h>
Signature · 1 line
2.25.1
#1 lore raw
Quoted 13 lines · Cai Huoqing

use SPDX-License-Identifier instead of a verbose license text

---
 kernel/debug/debug_core.c | 5 +----
 kernel/debug/gdbstub.c    | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
kernel/debug/debug_core.c +0 -0
index b4aa6bb6b2bd..da06a5553835 100644

kernel/debug/debug_core.c line 1

Quoted 1 line
kernel/debug/debug_core.c +1 -0
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0

Should this be: GPL-2.0-only ?

Daniel.

Quoted 36 lines
kernel/debug/debug_core.c +0 -4
 /*
  * Kernel Debug Core
  *
@@ -22,10 +23,6 @@
  *
  * Original KGDB stub: David Grothe <[email protected]>,
  * Tigran Aivazian <[email protected]>
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2. This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #define pr_fmt(fmt) "KGDB: " fmt
kernel/debug/gdbstub.c +1 -4
index b6f28fad4307..9d34d2364b5a 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Kernel Debug Core
  *
@@ -22,10 +23,6 @@
  *
  * Original KGDB stub: David Grothe <[email protected]>,
  * Tigran Aivazian <[email protected]>
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2. This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <linux/kernel.h>
Signature · 1 line
2.25.1