| Subject: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 232 |
| Date: Tue, 07 May 2019 12:02:33 +0100 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| |
| Based on 2 normalized pattern(s): |
| |
| this source code is licensed under the gnu general public license |
| version 2 see the file copying for more details |
| |
| |
| this source code is licensed under general public license version 2 |
| see |
| |
| |
| |
| extracted by the scancode license scanner the SPDX license identifier |
| |
| GPL-2.0-only |
| |
| has been chosen to replace the boilerplate/reference in 52 file(s). |
| |
| The result has been manually verified and compared against a license |
| compliance dataset provided by .... |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| |
| |
| --- |
| |
| --- a/arch/ia64/kernel/machine_kexec.c |
| +++ b/arch/ia64/kernel/machine_kexec.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * arch/ia64/kernel/machine_kexec.c |
| * |
| @@ -5,9 +6,6 @@ |
| * Copyright (C) 2005 Hewlett-Packard Development Comapny, L.P. |
| * Copyright (C) 2005 Khalid Aziz <khalid.aziz@hp.com> |
| * Copyright (C) 2006 Intel Corp, Zou Nan hai <nanhai.zou@intel.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/mm.h> |
| |
| |
| --- a/arch/ia64/kernel/relocate_kernel.S |
| +++ b/arch/ia64/kernel/relocate_kernel.S |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * arch/ia64/kernel/relocate_kernel.S |
| * |
| @@ -6,9 +7,6 @@ |
| * Copyright (C) 2005 Hewlett-Packard Development Company, L.P. |
| * Copyright (C) 2005 Khalid Aziz <khalid.aziz@hp.com> |
| * Copyright (C) 2005 Intel Corp, Zou Nan hai <nanhai.zou@intel.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| #include <asm/asmmacro.h> |
| #include <asm/kregs.h> |
| |
| |
| --- a/arch/mips/include/asm/kexec.h |
| +++ b/arch/mips/include/asm/kexec.h |
| @@ -1,9 +1,7 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * kexec.h for kexec |
| * Created by <nschichan@corp.free.fr> on Thu Oct 12 14:59:34 2006 |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #ifndef _MIPS_KEXEC |
| |
| |
| --- a/arch/mips/kernel/machine_kexec.c |
| +++ b/arch/mips/kernel/machine_kexec.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * machine_kexec.c for kexec |
| * Created by <nschichan@corp.free.fr> on Thu Oct 12 15:15:06 2006 |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| #include <linux/compiler.h> |
| #include <linux/kexec.h> |
| |
| |
| --- a/arch/mips/kernel/relocate_kernel.S |
| +++ b/arch/mips/kernel/relocate_kernel.S |
| @@ -1,9 +1,7 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * relocate_kernel.S for kexec |
| * Created by <nschichan@corp.free.fr> on Thu Oct 12 17:49:57 2006 |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <asm/asm.h> |
| |
| |
| --- a/arch/powerpc/kernel/crash.c |
| +++ b/arch/powerpc/kernel/crash.c |
| @@ -1,13 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Architecture specific (PPC64) functions for kexec based crash dumps. |
| * |
| * Copyright (C) 2005, IBM Corp. |
| * |
| * Created by: Haren Myneni |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| - * |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/arch/powerpc/kernel/crash_dump.c |
| +++ b/arch/powerpc/kernel/crash_dump.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Routines for doing kexec-based kdump. |
| * |
| * Copyright (C) 2005, IBM Corp. |
| * |
| * Created by: Michael Ellerman |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #undef DEBUG |
| |
| |
| --- a/arch/powerpc/kernel/machine_kexec.c |
| +++ b/arch/powerpc/kernel/machine_kexec.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Code to handle transition of Linux booting another kernel. |
| * |
| * Copyright (C) 2002-2003 Eric Biederman <ebiederm@xmission.com> |
| * GameCube/ppc32 port Copyright (C) 2004 Albert Herranz |
| * Copyright (C) 2005 IBM Corporation. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kexec.h> |
| |
| |
| --- a/arch/powerpc/kernel/machine_kexec_32.c |
| +++ b/arch/powerpc/kernel/machine_kexec_32.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * PPC32 code to handle Linux booting another kernel. |
| * |
| * Copyright (C) 2002-2003 Eric Biederman <ebiederm@xmission.com> |
| * GameCube/ppc32 port Copyright (C) 2004 Albert Herranz |
| * Copyright (C) 2005 IBM Corporation. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kexec.h> |
| |
| |
| --- a/arch/powerpc/kernel/machine_kexec_64.c |
| +++ b/arch/powerpc/kernel/machine_kexec_64.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * PPC64 code to handle Linux booting another kernel. |
| * |
| * Copyright (C) 2004-2005, IBM Corp. |
| * |
| * Created by: Milton D Miller II |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| |
| |
| |
| --- a/arch/x86/kernel/kexec-bzimage64.c |
| +++ b/arch/x86/kernel/kexec-bzimage64.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Kexec bzImage loader |
| * |
| * Copyright (C) 2014 Red Hat Inc. |
| * Authors: |
| * Vivek Goyal <vgoyal@redhat.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #define pr_fmt(fmt) "kexec-bzImage64: " fmt |
| |
| |
| --- a/arch/x86/kernel/machine_kexec_32.c |
| +++ b/arch/x86/kernel/machine_kexec_32.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * handle transition of Linux booting another kernel |
| * Copyright (C) 2002-2005 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/mm.h> |
| |
| |
| --- a/arch/x86/kernel/machine_kexec_64.c |
| +++ b/arch/x86/kernel/machine_kexec_64.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * handle transition of Linux booting another kernel |
| * Copyright (C) 2002-2005 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #define pr_fmt(fmt) "kexec: " fmt |
| |
| |
| --- a/arch/x86/kernel/relocate_kernel_32.S |
| +++ b/arch/x86/kernel/relocate_kernel_32.S |
| @@ -1,9 +1,7 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * relocate_kernel.S - put the kernel image in place to boot |
| * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/linkage.h> |
| |
| |
| --- a/arch/x86/kernel/relocate_kernel_64.S |
| +++ b/arch/x86/kernel/relocate_kernel_64.S |
| @@ -1,9 +1,7 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * relocate_kernel.S - put the kernel image in place to boot |
| * Copyright (C) 2002-2005 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/linkage.h> |
| |
| |
| --- a/arch/x86/kernel/verify_cpu.S |
| +++ b/arch/x86/kernel/verify_cpu.S |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * |
| * verify_cpu.S - Code for cpu long mode and SSE verification. This |
| @@ -8,9 +9,6 @@ |
| * Copyright (c) 2007 Eric Biederman (ebiederm@xmission.com) |
| * Copyright (c) 2007 Vivek Goyal (vgoyal@in.ibm.com) |
| * Copyright (c) 2010 Kees Cook (kees.cook@canonical.com) |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| * |
| * This is a common code for verification whether CPU supports |
| * long mode and SSE or not. It is not called directly instead this |
| |
| |
| --- a/arch/x86/purgatory/entry64.S |
| +++ b/arch/x86/purgatory/entry64.S |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright (C) 2003,2004 Eric Biederman (ebiederm@xmission.com) |
| * Copyright (C) 2014 Red Hat Inc. |
| @@ -5,9 +6,6 @@ |
| * Author(s): Vivek Goyal <vgoyal@redhat.com> |
| * |
| * This code has been taken from kexec-tools. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| .text |
| |
| |
| --- a/arch/x86/purgatory/purgatory.c |
| +++ b/arch/x86/purgatory/purgatory.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * purgatory: Runs between two kernels |
| * |
| @@ -5,9 +6,6 @@ |
| * |
| * Author: |
| * Vivek Goyal <vgoyal@redhat.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/bug.h> |
| |
| |
| --- a/arch/x86/purgatory/setup-x86_64.S |
| +++ b/arch/x86/purgatory/setup-x86_64.S |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * purgatory: setup code |
| * |
| @@ -5,9 +6,6 @@ |
| * Copyright (C) 2014 Red Hat Inc. |
| * |
| * This code has been taken from kexec-tools. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| #include <asm/purgatory.h> |
| |
| |
| |
| --- a/arch/x86/purgatory/stack.S |
| +++ b/arch/x86/purgatory/stack.S |
| @@ -1,10 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * purgatory: stack |
| * |
| * Copyright (C) 2014 Red Hat Inc. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| /* A stack for the loaded kernel. |
| |
| |
| --- a/arch/x86/purgatory/string.c |
| +++ b/arch/x86/purgatory/string.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Simple string functions. |
| * |
| @@ -5,9 +6,6 @@ |
| * |
| * Author: |
| * Vivek Goyal <vgoyal@redhat.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/types.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2406.c |
| +++ b/drivers/w1/slaves/w1_ds2406.c |
| @@ -1,11 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds2406.c - w1 family 12 (DS2406) driver |
| * based on w1_ds2413.c by Mariusz Bialonczyk <manio@skyboo.net> |
| * |
| * Copyright (c) 2014 Scott Alfter <scott@alfter.us> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2408.c |
| +++ b/drivers/w1/slaves/w1_ds2408.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds2408.c - w1 family 29 (DS2408) driver |
| * |
| * Copyright (c) 2010 Jean-Francois Dagenais <dagenaisj@sonatest.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2413.c |
| +++ b/drivers/w1/slaves/w1_ds2413.c |
| @@ -1,11 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds2413.c - w1 family 3a (DS2413) driver |
| * based on w1_ds2408.c by Jean-Francois Dagenais <dagenaisj@sonatest.com> |
| * |
| * Copyright (c) 2013 Mariusz Bialonczyk <manio@skyboo.net> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2431.c |
| +++ b/drivers/w1/slaves/w1_ds2431.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds2431.c - w1 family 2d (DS2431) driver |
| * |
| * Copyright (c) 2008 Bernhard Weirich <bernhard.weirich@riedel.net> |
| * |
| * Heavily inspired by w1_DS2433 driver from Ben Gardner <bgardner@wabtec.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2433.c |
| +++ b/drivers/w1/slaves/w1_ds2433.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds2433.c - w1 family 23 (DS2433) driver |
| * |
| * Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2438.c |
| +++ b/drivers/w1/slaves/w1_ds2438.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * 1-Wire implementation for the ds2438 chip |
| * |
| * Copyright (c) 2017 Mariusz Bialonczyk <manio@skyboo.net> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds2805.c |
| +++ b/drivers/w1/slaves/w1_ds2805.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds2805 - w1 family 0d (DS28E05) driver |
| * |
| * Copyright (c) 2016 Andrew Worsley amworsley@gmail.com |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds28e04.c |
| +++ b/drivers/w1/slaves/w1_ds28e04.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds28e04.c - w1 family 1C (DS28E04) driver |
| * |
| * Copyright (c) 2012 Markus Franke <franke.m@sebakmt.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/w1/slaves/w1_ds28e17.c |
| +++ b/drivers/w1/slaves/w1_ds28e17.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * w1_ds28e17.c - w1 family 19 (DS28E17) driver |
| * |
| * Copyright (c) 2016 Jan Kandziora <jjj@gmx.de> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/crc16.h> |
| |
| |
| --- a/include/linux/crc-itu-t.h |
| +++ b/include/linux/crc-itu-t.h |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * crc-itu-t.h - CRC ITU-T V.41 routine |
| * |
| @@ -5,9 +6,6 @@ |
| * Width 16 |
| * Poly 0x1021 (x^16 + x^12 + x^15 + 1) |
| * Init 0 |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #ifndef CRC_ITU_T_H |
| |
| |
| --- a/include/linux/crc16.h |
| +++ b/include/linux/crc16.h |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * crc16.h - CRC-16 routine |
| * |
| @@ -7,9 +8,6 @@ |
| * Init 0 |
| * |
| * Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #ifndef __CRC16_H |
| |
| |
| --- a/include/linux/genalloc.h |
| +++ b/include/linux/genalloc.h |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Basic general purpose allocator for managing special purpose |
| * memory, for example, memory that is not managed by the regular |
| @@ -21,9 +22,6 @@ |
| * the allocator can NOT be used in NMI handler. So code uses the |
| * allocator in NMI handler should depend on |
| * CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| |
| |
| |
| --- a/include/linux/sha256.h |
| +++ b/include/linux/sha256.h |
| @@ -1,10 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright (C) 2014 Red Hat Inc. |
| * |
| * Author: Vivek Goyal <vgoyal@redhat.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #ifndef SHA256_H |
| |
| |
| --- a/kernel/crash_core.c |
| +++ b/kernel/crash_core.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * crash.c - kernel crash support code. |
| * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/crash_core.h> |
| |
| |
| --- a/kernel/kexec.c |
| +++ b/kernel/kexec.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kexec.c - kexec_load system call |
| * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| |
| |
| --- a/kernel/kexec_core.c |
| +++ b/kernel/kexec_core.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kexec.c - kexec system call core code. |
| * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| |
| |
| --- a/kernel/kexec_file.c |
| +++ b/kernel/kexec_file.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kexec: kexec_file_load system call |
| * |
| * Copyright (C) 2014 Red Hat Inc. |
| * Authors: |
| * Vivek Goyal <vgoyal@redhat.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| |
| |
| --- a/lib/bitmap.c |
| +++ b/lib/bitmap.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * lib/bitmap.c |
| * Helper functions for bitmap.h. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| #include <linux/export.h> |
| #include <linux/thread_info.h> |
| |
| |
| --- a/lib/cmdline.c |
| +++ b/lib/cmdline.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * linux/lib/cmdline.c |
| * Helper functions generally used for parsing kernel command line |
| @@ -5,11 +6,7 @@ |
| * |
| * Code and copyrights come from init/main.c and arch/i386/kernel/setup.c. |
| * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| - * |
| * GNU Indent formatting options for this file: -kr -i8 -npsl -pcs |
| - * |
| */ |
| |
| #include <linux/export.h> |
| |
| |
| --- a/lib/crc-ccitt.c |
| +++ b/lib/crc-ccitt.c |
| @@ -1,8 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * linux/lib/crc-ccitt.c |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/types.h> |
| |
| |
| --- a/lib/crc-itu-t.c |
| +++ b/lib/crc-itu-t.c |
| @@ -1,8 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * crc-itu-t.c |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/types.h> |
| |
| |
| --- a/lib/crc-t10dif.c |
| +++ b/lib/crc-t10dif.c |
| @@ -1,11 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * T10 Data Integrity Field CRC16 calculation |
| * |
| * Copyright (c) 2007 Oracle Corporation. All rights reserved. |
| * Written by Martin K. Petersen <martin.petersen@oracle.com> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/types.h> |
| |
| |
| --- a/lib/crc16.c |
| +++ b/lib/crc16.c |
| @@ -1,8 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * crc16.c |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/types.h> |
| |
| |
| --- a/lib/crc4.c |
| +++ b/lib/crc4.c |
| @@ -1,8 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * crc4.c - simple crc-4 calculations. |
| - * |
| - * This source code is licensed under the GNU General Public License, Version |
| - * 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/crc4.h> |
| |
| |
| --- a/lib/crc7.c |
| +++ b/lib/crc7.c |
| @@ -1,8 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * crc7.c |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/types.h> |
| |
| |
| --- a/lib/genalloc.c |
| +++ b/lib/genalloc.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Basic general purpose allocator for managing special purpose |
| * memory, for example, memory that is not managed by the regular |
| @@ -23,9 +24,6 @@ |
| * CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG. |
| * |
| * Copyright 2005 (C) Jes Sorensen <jes@trained-monkey.org> |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/slab.h> |
| |
| |
| --- a/lib/parser.c |
| +++ b/lib/parser.c |
| @@ -1,8 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * lib/parser.c - simple parser for mount, etc. options. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/ctype.h> |
| |
| |
| --- a/lib/scatterlist.c |
| +++ b/lib/scatterlist.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Copyright (C) 2007 Jens Axboe <jens.axboe@oracle.com> |
| * |
| * Scatterlist handling helpers. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| #include <linux/export.h> |
| #include <linux/slab.h> |
| |
| |
| --- a/lib/sg_split.c |
| +++ b/lib/sg_split.c |
| @@ -1,10 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Copyright (C) 2015 Robert Jarzmik <robert.jarzmik@free.fr> |
| * |
| * Scatterlist splitting helpers. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| |
| #include <linux/scatterlist.h> |
| |
| |
| --- a/net/netfilter/nf_conntrack_h323_asn1.c |
| +++ b/net/netfilter/nf_conntrack_h323_asn1.c |
| @@ -1,13 +1,11 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * ip_conntrack_helper_h323_asn1.c - BER and PER decoding library for H.323 |
| * conntrack/NAT module. |
| * |
| * Copyright (c) 2006 by Jing Min Zhao <zhaojingmin@users.sourceforge.net> |
| * |
| - * This source code is licensed under General Public License version 2. |
| - * |
| * See ip_conntrack_helper_h323_asn1.h for details. |
| - * |
| */ |
| |
| #ifdef __KERNEL__ |
| |
| |
| --- a/tools/lib/bitmap.c |
| +++ b/tools/lib/bitmap.c |
| @@ -1,9 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * From lib/bitmap.c |
| * Helper functions for bitmap.h. |
| - * |
| - * This source code is licensed under the GNU General Public License, |
| - * Version 2. See the file COPYING for more details. |
| */ |
| #include <linux/bitmap.h> |
| |
| |
| |