Skip to contentSkip to conversation

kernel: debug: Add SPDX license ids to kdb files

PATCH New Tim Bird 1 participant 1 message Jan 17

Subsystems (2)
lore
Share & tools
lore

Tim Bird

author
#0 lore raw

PATCH v2 1/1 kernel: debug: Add SPDX license ids to kdb files

Add GPL-2.0 license id to some files related to kdb and kgdb, replacing references to GPL or COPYING.

These files were introduced into the kernel in 2008 and 2010.

---
V1 -> V2 Add closing */ in debug_core.h

---
 include/linux/kdb.h             | 5 +----
 include/linux/kgdb.h            | 4 +---
 kernel/debug/debug_core.h       | 5 +----
 kernel/debug/kdb/kdb_bp.c       | 5 +----
 kernel/debug/kdb/kdb_bt.c       | 5 +----
 kernel/debug/kdb/kdb_debugger.c | 1 +
 kernel/debug/kdb/kdb_io.c       | 5 +----
 kernel/debug/kdb/kdb_keyboard.c | 4 +---
 kernel/debug/kdb/kdb_main.c     | 5 +----
 kernel/debug/kdb/kdb_private.h  | 1 +
 kernel/debug/kdb/kdb_support.c  | 5 +----
 11 files changed, 11 insertions(+), 34 deletions(-)
include/linux/kdb.h +1 -4
index 741c58e86431..26fe4ab81b42 100644
@@ -1,13 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _KDB_H
 #define _KDB_H
 
 /*
  * Kernel Debugger Architecture Independent Global Headers
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
  * Copyright (c) 2000-2007 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (C) 2000 Stephane Eranian <[email protected]>
  * Copyright (C) 2009 Jason Wessel <[email protected]>
include/linux/kgdb.h +1 -3
index 5eebbe7a3545..22b3f3839f30 100644
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * This provides the callbacks and functions that KGDB needs to share between
  * the core, I/O and arch-specific portions.
@@ -6,9 +7,6 @@
  *         Tom Rini <[email protected]>
  *
  * 2001-2004 (c) Amit S. Kale and 2003-2005 (c) MontaVista Software, Inc.
- * 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.
  */
 #ifndef _KGDB_H_
 #define _KGDB_H_
kernel/debug/debug_core.h +1 -4
index cd22b5f68831..fa1226158b45 100644
@@ -1,11 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Created by: Jason Wessel <[email protected]>
  *
  * Copyright (c) 2009 Wind River Systems, Inc.  All Rights Reserved.
- *
- * 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.
  */
 
 #ifndef _DEBUG_CORE_H_
kernel/debug/kdb/kdb_bp.c +1 -4
index c0c2072f5452..eb8d851d620f 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debugger Architecture Independent Breakpoint Handler
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
  * Copyright (c) 1999-2004 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (c) 2009 Wind River Systems, Inc.  All Rights Reserved.
  */
kernel/debug/kdb/kdb_bt.c +1 -4
index 137ba73f56fc..c561aa076970 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debugger Architecture Independent Stack Traceback
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
  * Copyright (c) 1999-2004 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (c) 2009 Wind River Systems, Inc.  All Rights Reserved.
  */
kernel/debug/kdb/kdb_debugger.c +1 -0
index e91fc3e4edd5..59b81032bbab 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Created by: Jason Wessel <[email protected]>
  *
kernel/debug/kdb/kdb_io.c +1 -4
index 61c1690058ed..c399f11740ef 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debugger Architecture Independent Console I/O handler
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
  * Copyright (c) 1999-2006 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (c) 2009 Wind River Systems, Inc.  All Rights Reserved.
  */
kernel/debug/kdb/kdb_keyboard.c +1 -3
index 386d30e530b7..c7ebcb9e9d8f 100644
@@ -1,9 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debugger Architecture Dependent Console I/O handler
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.
- *
  * Copyright (c) 1999-2006 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (c) 2009 Wind River Systems, Inc.  All Rights Reserved.
  */
kernel/debug/kdb/kdb_main.c +1 -4
index dddf2b5aad57..314787fb8ce7 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debugger Architecture Independent Main Code
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
  * Copyright (C) 1999-2004 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (C) 2000 Stephane Eranian <[email protected]>
  * Xscale (R) modifications copyright (C) 2003 Intel Corporation.
kernel/debug/kdb/kdb_private.h +1 -0
index a2fc7d2bc9fc..92a28b8ab604 100644
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _KDBPRIVATE_H
 #define _KDBPRIVATE_H
 
kernel/debug/kdb/kdb_support.c +1 -4
index 56f7b906e7cc..0a2e54e77ce6 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Kernel Debugger Architecture Independent Support Functions
  *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
  * Copyright (c) 1999-2004 Silicon Graphics, Inc.  All Rights Reserved.
  * Copyright (c) 2009 Wind River Systems, Inc.  All Rights Reserved.
  * 03/02/13    added new 2.5 kallsyms <[email protected]>
Signature · 1 line
2.43.0