2021-09-06 11:30:55

by Cai,Huoqing

[permalink] [raw]
Subject: [PATCH v2] kernel: debug: Convert to SPDX identifier

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

Signed-off-by: Cai Huoqing <[email protected]>
---
v1->v2: change GPL-2.0 to GPL-2.0-only

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

diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index b4aa6bb6b2bd..da06a5553835 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -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.
*/

#define pr_fmt(fmt) "KGDB: " fmt
diff --git a/kernel/debug/gdbstub.c b/kernel/debug/gdbstub.c
index b6f28fad4307..9d34d2364b5a 100644
--- a/kernel/debug/gdbstub.c
+++ b/kernel/debug/gdbstub.c
@@ -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>
--
2.25.1


2021-09-06 16:05:45

by Daniel Thompson

[permalink] [raw]
Subject: Re: [Kgdb-bugreport] [PATCH v2] kernel: debug: Convert to SPDX identifier

On Mon, Sep 06, 2021 at 07:23:02PM +0800, Cai Huoqing wrote:
> use SPDX-License-Identifier instead of a verbose license text
>
> Signed-off-by: Cai Huoqing <[email protected]>

Applied. Thanks!


> ---
> v1->v2: change GPL-2.0 to GPL-2.0-only
>
> kernel/debug/debug_core.c | 5 +----
> kernel/debug/gdbstub.c | 5 +----
> 2 files changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
> index b4aa6bb6b2bd..da06a5553835 100644
> --- a/kernel/debug/debug_core.c
> +++ b/kernel/debug/debug_core.c
> @@ -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.
> */
>
> #define pr_fmt(fmt) "KGDB: " fmt
> diff --git a/kernel/debug/gdbstub.c b/kernel/debug/gdbstub.c
> index b6f28fad4307..9d34d2364b5a 100644
> --- a/kernel/debug/gdbstub.c
> +++ b/kernel/debug/gdbstub.c
> @@ -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>
> --
> 2.25.1
>
>
>
> _______________________________________________
> Kgdb-bugreport mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport