| Subject: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 434 |
| Date: Tue, 07 May 2019 12:03:10 +0100 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| |
| Based on 1 normalized pattern(s): |
| |
| this file is released under the gplv2 |
| |
| |
| |
| extracted by the scancode license scanner the SPDX license identifier |
| |
| GPL-2.0-only |
| |
| has been chosen to replace the boilerplate/reference in 77 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/alpha/include/asm/device.h |
| +++ b/arch/alpha/include/asm/device.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Arch specific extensions to struct device |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #include <asm-generic/device.h> |
| |
| |
| |
| --- a/arch/arm/include/asm/device.h |
| +++ b/arch/arm/include/asm/device.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Arch specific extensions to struct device |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #ifndef ASMARM_DEVICE_H |
| #define ASMARM_DEVICE_H |
| |
| |
| --- a/arch/ia64/include/asm/device.h |
| +++ b/arch/ia64/include/asm/device.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Arch specific extensions to struct device |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #ifndef _ASM_IA64_DEVICE_H |
| #define _ASM_IA64_DEVICE_H |
| |
| |
| --- a/arch/powerpc/include/asm/device.h |
| +++ b/arch/powerpc/include/asm/device.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Arch specific extensions to struct device |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #ifndef _ASM_POWERPC_DEVICE_H |
| #define _ASM_POWERPC_DEVICE_H |
| |
| |
| --- a/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c |
| +++ b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * The driver for Freescale MPC512x LocalPlus Bus FIFO |
| * (called SCLPC in the Reference Manual). |
| * |
| * Copyright (C) 2013-2015 Alexander Popov <alex.popov@linux.com>. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/interrupt.h> |
| |
| |
| --- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c |
| +++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * LocalPlus Bus FIFO driver for the Freescale MPC52xx. |
| * |
| * Copyright (C) 2009 Secret Lab Technologies Ltd. |
| - * |
| - * This file is released under the GPLv2 |
| * |
| * Todo: |
| * - Add support for multiple requests to be queued. |
| |
| |
| --- a/arch/sparc/include/asm/device.h |
| +++ b/arch/sparc/include/asm/device.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Arch specific extensions to struct device |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #ifndef _ASM_SPARC_DEVICE_H |
| #define _ASM_SPARC_DEVICE_H |
| |
| |
| --- a/arch/x86/kernel/kdebugfs.c |
| +++ b/arch/x86/kernel/kdebugfs.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Architecture specific debugfs files |
| * |
| * Copyright (C) 2007, Intel Corp. |
| * Huang Ying <ying.huang@intel.com> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| #include <linux/debugfs.h> |
| #include <linux/uaccess.h> |
| |
| |
| --- a/arch/x86/kernel/ksysfs.c |
| +++ b/arch/x86/kernel/ksysfs.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Architecture specific sysfs attributes in /sys/kernel |
| * |
| @@ -5,8 +6,6 @@ |
| * Huang Ying <ying.huang@intel.com> |
| * Copyright (C) 2013, 2013 Red Hat, Inc. |
| * Dave Young <dyoung@redhat.com> |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #include <linux/kobject.h> |
| |
| |
| --- a/block/blk-flush.c |
| +++ b/block/blk-flush.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Functions to sequence PREFLUSH and FUA writes. |
| * |
| * Copyright (C) 2011 Max Planck Institute for Gravitational Physics |
| * Copyright (C) 2011 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| * |
| * REQ_{PREFLUSH|FUA} requests are decomposed to sequences consisted of three |
| * optional steps - PREFLUSH, DATA and POSTFLUSH - according to the request |
| |
| |
| --- a/drivers/acpi/glue.c |
| +++ b/drivers/acpi/glue.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Link physical devices with ACPI devices support |
| * |
| * Copyright (c) 2005 David Shaohua Li <shaohua.li@intel.com> |
| * Copyright (c) 2005 Intel Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/acpi_iort.h> |
| |
| |
| --- a/drivers/acpi/nvs.c |
| +++ b/drivers/acpi/nvs.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * nvs.c - Routines for saving and restoring ACPI NVS memory region |
| * |
| * Copyright (C) 2008-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/io.h> |
| |
| |
| --- a/drivers/acpi/sleep.c |
| +++ b/drivers/acpi/sleep.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * sleep.c - ACPI sleep support. |
| * |
| @@ -5,9 +6,6 @@ |
| * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com> |
| * Copyright (c) 2000-2003 Patrick Mochel |
| * Copyright (c) 2003 Open Source Development Lab |
| - * |
| - * This file is released under the GPLv2. |
| - * |
| */ |
| |
| #include <linux/delay.h> |
| |
| |
| --- a/drivers/ata/libata-pmp.c |
| +++ b/drivers/ata/libata-pmp.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * libata-pmp.c - libata port multiplier support |
| * |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007 Tejun Heo <teheo@suse.de> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/base/power/clock_ops.c |
| +++ b/drivers/base/power/clock_ops.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/clock_ops.c - Generic clock manipulation PM callbacks |
| * |
| * Copyright (c) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/base/power/common.c |
| +++ b/drivers/base/power/common.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/common.c - Common device power management code. |
| * |
| * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/base/power/domain.c |
| +++ b/drivers/base/power/domain.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/domain.c - Common code related to device power domains. |
| * |
| * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #define pr_fmt(fmt) "PM: " fmt |
| |
| |
| --- a/drivers/base/power/domain_governor.c |
| +++ b/drivers/base/power/domain_governor.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/domain_governor.c - Governors for device PM domains. |
| * |
| * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/base/power/generic_ops.c |
| +++ b/drivers/base/power/generic_ops.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/generic_ops.c - Generic PM callbacks for subsystems |
| * |
| * Copyright (c) 2010 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/pm.h> |
| |
| |
| --- a/drivers/base/power/main.c |
| +++ b/drivers/base/power/main.c |
| @@ -1,11 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/main.c - Where the driver meets power management. |
| * |
| * Copyright (c) 2003 Patrick Mochel |
| * Copyright (c) 2003 Open Source Development Lab |
| - * |
| - * This file is released under the GPLv2 |
| - * |
| * |
| * The driver model core calls device_pm_add() when a device is registered. |
| * This will initialize the embedded device_pm_info object in the device |
| |
| |
| --- a/drivers/base/power/runtime.c |
| +++ b/drivers/base/power/runtime.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/runtime.c - Helper functions for device runtime PM |
| * |
| * Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| * Copyright (C) 2010 Alan Stern <stern@rowland.harvard.edu> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/sched/mm.h> |
| |
| |
| --- a/drivers/base/power/wakeup.c |
| +++ b/drivers/base/power/wakeup.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * drivers/base/power/wakeup.c - System wakeup events framework |
| * |
| * Copyright (c) 2010 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #define pr_fmt(fmt) "PM: " fmt |
| |
| |
| --- a/drivers/cpuidle/poll_state.c |
| +++ b/drivers/cpuidle/poll_state.c |
| @@ -1,7 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * poll_state.c - Polling idle state |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/cpuidle.h> |
| |
| |
| --- a/drivers/firmware/efi/efi.c |
| +++ b/drivers/firmware/efi/efi.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * efi.c - EFI subsystem |
| * |
| @@ -9,8 +10,6 @@ |
| * allowing the efivarfs to be mounted or the efivars module to be loaded. |
| * The existance of /sys/firmware/efi may also be used by userspace to |
| * determine that the system supports EFI. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| |
| |
| --- a/drivers/firmware/efi/runtime-wrappers.c |
| +++ b/drivers/firmware/efi/runtime-wrappers.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * runtime-wrappers.c - Runtime Services function call wrappers |
| * |
| @@ -19,8 +20,6 @@ |
| * Copyright (C) 1999-2002 Hewlett-Packard Co. |
| * Copyright (C) 2005-2008 Intel Co. |
| * Copyright (C) 2013 SuSE Labs |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #define pr_fmt(fmt) "efi: " fmt |
| |
| |
| --- a/drivers/gpu/drm/drm_sysfs.c |
| +++ b/drivers/gpu/drm/drm_sysfs.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| |
| /* |
| * drm_sysfs.c - Modifications to drm_sysfs_class.c to support |
| @@ -7,9 +8,6 @@ |
| * Copyright (c) 2004 Jon Smirl <jonsmirl@gmail.com> |
| * Copyright (c) 2003-2004 Greg Kroah-Hartman <greg@kroah.com> |
| * Copyright (c) 2003-2004 IBM Corp. |
| - * |
| - * This file is released under the GPLv2 |
| - * |
| */ |
| |
| #include <linux/device.h> |
| |
| |
| --- a/drivers/gpu/drm/i915/selftests/lib_sw_fence.h |
| +++ b/drivers/gpu/drm/i915/selftests/lib_sw_fence.h |
| @@ -1,10 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * lib_sw_fence.h - library routines for testing N:M synchronisation points |
| * |
| * Copyright (C) 2017 Intel Corporation |
| - * |
| - * This file is released under the GPLv2. |
| - * |
| */ |
| |
| #ifndef _LIB_SW_FENCE_H_ |
| |
| |
| --- a/drivers/hwmon/asus_atk0110.c |
| +++ b/drivers/hwmon/asus_atk0110.c |
| @@ -1,7 +1,7 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Copyright (C) 2007-2009 Luca Tettamanti <kronos.it@gmail.com> |
| * |
| - * This file is released under the GPLv2 |
| * See COPYING in the top level directory of the kernel tree. |
| */ |
| |
| |
| |
| --- a/drivers/i2c/busses/i2c-ali1563.c |
| +++ b/drivers/i2c/busses/i2c-ali1563.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /** |
| * i2c-ali1563.c - i2c driver for the ALi 1563 Southbridge |
| * |
| @@ -12,8 +13,6 @@ |
| * |
| * This driver is based on a mix of the 15x3, 1535, and i801 drivers, |
| * with a little help from the ALi 1563 spec. |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #include <linux/module.h> |
| |
| |
| --- a/drivers/md/dm-verity-target.c |
| +++ b/drivers/md/dm-verity-target.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Copyright (C) 2012 Red Hat, Inc. |
| * |
| * Author: Mikulas Patocka <mpatocka@redhat.com> |
| * |
| * Based on Chromium dm-verity driver (C) 2011 The Chromium OS Authors |
| - * |
| - * This file is released under the GPLv2. |
| * |
| * In the file "/sys/module/dm_verity/parameters/prefetch_cluster" you can set |
| * default prefetch value. Data are read in "prefetch_cluster" chunks from the |
| |
| |
| --- a/drivers/md/dm-verity.h |
| +++ b/drivers/md/dm-verity.h |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright (C) 2012 Red Hat, Inc. |
| * Copyright (C) 2015 Google, Inc. |
| @@ -5,8 +6,6 @@ |
| * Author: Mikulas Patocka <mpatocka@redhat.com> |
| * |
| * Based on Chromium dm-verity driver (C) 2011 The Chromium OS Authors |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef DM_VERITY_H |
| |
| |
| --- a/drivers/of/of_mdio.c |
| +++ b/drivers/of/of_mdio.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * OF helpers for the MDIO (Ethernet PHY) API |
| * |
| * Copyright (c) 2009 Secret Lab Technologies, Ltd. |
| - * |
| - * This file is released under the GPLv2 |
| * |
| * This file provides helper functions for extracting PHY device information |
| * out of the OpenFirmware device tree and using it to populate an mii_bus. |
| |
| |
| --- a/drivers/of/of_net.c |
| +++ b/drivers/of/of_net.c |
| @@ -1,7 +1,6 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * OF helpers for network devices. |
| - * |
| - * This file is released under the GPLv2 |
| * |
| * Initially copied out of arch/powerpc/kernel/prom_parse.c |
| */ |
| |
| |
| --- a/drivers/scsi/scsi_logging.c |
| +++ b/drivers/scsi/scsi_logging.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * scsi_logging.c |
| * |
| * Copyright (C) 2014 SUSE Linux Products GmbH |
| * Copyright (C) 2014 Hannes Reinecke <hare@suse.de> |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #include <linux/kernel.h> |
| |
| |
| --- a/drivers/spi/spi-mpc52xx.c |
| +++ b/drivers/spi/spi-mpc52xx.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * MPC52xx SPI bus driver. |
| * |
| * Copyright (C) 2008 Secret Lab Technologies Ltd. |
| - * |
| - * This file is released under the GPLv2 |
| * |
| * This is the driver for the MPC5200's dedicated SPI controller. |
| * |
| |
| |
| --- a/drivers/video/display_timing.c |
| +++ b/drivers/video/display_timing.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * generic display timing functions |
| * |
| * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #include <linux/export.h> |
| |
| |
| --- a/drivers/video/of_display_timing.c |
| +++ b/drivers/video/of_display_timing.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * OF helpers for parsing display timings |
| * |
| * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix |
| * |
| * based on of_videomode.c by Sascha Hauer <s.hauer@pengutronix.de> |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #include <linux/export.h> |
| #include <linux/of.h> |
| |
| |
| --- a/drivers/video/of_videomode.c |
| +++ b/drivers/video/of_videomode.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * generic videomode helper |
| * |
| * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #include <linux/errno.h> |
| #include <linux/export.h> |
| |
| |
| --- a/drivers/video/videomode.c |
| +++ b/drivers/video/videomode.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * generic display timing functions |
| * |
| * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #include <linux/errno.h> |
| |
| |
| --- a/fs/fuse/cuse.c |
| +++ b/fs/fuse/cuse.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * CUSE: Character device in Userspace |
| * |
| * Copyright (C) 2008-2009 SUSE Linux Products GmbH |
| * Copyright (C) 2008-2009 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| * |
| * CUSE enables character devices to be implemented from userland much |
| * like FUSE allows filesystems. On initialization /dev/cuse is |
| |
| |
| --- a/fs/kernfs/dir.c |
| +++ b/fs/kernfs/dir.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * fs/kernfs/dir.c - kernfs directory implementation |
| * |
| * Copyright (c) 2001-3 Patrick Mochel |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/sched.h> |
| |
| |
| --- a/fs/kernfs/file.c |
| +++ b/fs/kernfs/file.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * fs/kernfs/file.c - kernfs file implementation |
| * |
| * Copyright (c) 2001-3 Patrick Mochel |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/fs.h> |
| |
| |
| --- a/fs/kernfs/inode.c |
| +++ b/fs/kernfs/inode.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * fs/kernfs/inode.c - kernfs inode implementation |
| * |
| * Copyright (c) 2001-3 Patrick Mochel |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/pagemap.h> |
| |
| |
| --- a/fs/kernfs/kernfs-internal.h |
| +++ b/fs/kernfs/kernfs-internal.h |
| @@ -1,11 +1,10 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * fs/kernfs/kernfs-internal.h - kernfs internal header file |
| * |
| * Copyright (c) 2001-3 Patrick Mochel |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007, 2013 Tejun Heo <teheo@suse.de> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef __KERNFS_INTERNAL_H |
| |
| |
| --- a/fs/kernfs/mount.c |
| +++ b/fs/kernfs/mount.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * fs/kernfs/mount.c - kernfs mount implementation |
| * |
| * Copyright (c) 2001-3 Patrick Mochel |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/fs.h> |
| |
| |
| --- a/fs/kernfs/symlink.c |
| +++ b/fs/kernfs/symlink.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * fs/kernfs/symlink.c - kernfs symlink implementation |
| * |
| * Copyright (c) 2001-3 Patrick Mochel |
| * Copyright (c) 2007 SUSE Linux Products GmbH |
| * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/fs.h> |
| |
| |
| --- a/include/acpi/hed.h |
| +++ b/include/acpi/hed.h |
| @@ -1,10 +1,9 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * hed.h - ACPI Hardware Error Device |
| * |
| * Copyright (C) 2009, Intel Corp. |
| * Author: Huang Ying <ying.huang@intel.com> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef ACPI_HED_H |
| |
| |
| --- a/include/asm-generic/device.h |
| +++ b/include/asm-generic/device.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Arch specific extensions to struct device |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| #ifndef _ASM_GENERIC_DEVICE_H |
| #define _ASM_GENERIC_DEVICE_H |
| |
| |
| --- a/include/linux/iova.h |
| +++ b/include/linux/iova.h |
| @@ -1,11 +1,9 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright (c) 2006, Intel Corporation. |
| * |
| - * This file is released under the GPLv2. |
| - * |
| * Copyright (C) 2006-2008 Intel Corporation |
| * Author: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> |
| - * |
| */ |
| |
| #ifndef _IOVA_H_ |
| |
| |
| --- a/include/linux/kernfs.h |
| +++ b/include/linux/kernfs.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * kernfs.h - pseudo filesystem decoupled from vfs locking |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef __LINUX_KERNFS_H |
| |
| |
| --- a/include/linux/kref.h |
| +++ b/include/linux/kref.h |
| @@ -1,3 +1,4 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * kref.h - library routines for handling generic reference counted objects |
| * |
| @@ -7,9 +8,6 @@ |
| * based on kobject.h which was: |
| * Copyright (C) 2002-2003 Patrick Mochel <mochel@osdl.org> |
| * Copyright (C) 2002-2003 Open Source Development Labs |
| - * |
| - * This file is released under the GPLv2. |
| - * |
| */ |
| |
| #ifndef _KREF_H_ |
| |
| |
| --- a/include/linux/of_mdio.h |
| +++ b/include/linux/of_mdio.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * OF helpers for the MDIO (Ethernet PHY) API |
| * |
| * Copyright (c) 2009 Secret Lab Technologies, Ltd. |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __LINUX_OF_MDIO_H |
| |
| |
| --- a/include/linux/of_net.h |
| +++ b/include/linux/of_net.h |
| @@ -1,7 +1,6 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * OF helpers for network devices. |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __LINUX_OF_NET_H |
| |
| |
| --- a/include/linux/platform_device.h |
| +++ b/include/linux/platform_device.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * platform_device.h - generic, centralized driver model |
| * |
| * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> |
| - * |
| - * This file is released under the GPLv2 |
| * |
| * See Documentation/driver-model/ for more information. |
| */ |
| |
| |
| --- a/include/linux/pm_clock.h |
| +++ b/include/linux/pm_clock.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * pm_clock.h - Definitions and headers related to device clocks. |
| * |
| * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef _LINUX_PM_CLOCK_H |
| |
| |
| --- a/include/linux/pm_domain.h |
| +++ b/include/linux/pm_domain.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * pm_domain.h - Definitions and headers related to device power domains. |
| * |
| * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef _LINUX_PM_DOMAIN_H |
| |
| |
| --- a/include/linux/pm_runtime.h |
| +++ b/include/linux/pm_runtime.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * pm_runtime.h - Device run-time power management helper functions. |
| * |
| * Copyright (C) 2009 Rafael J. Wysocki <rjw@sisk.pl> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef _LINUX_PM_RUNTIME_H |
| |
| |
| --- a/include/linux/stmp3xxx_rtc_wdt.h |
| +++ b/include/linux/stmp3xxx_rtc_wdt.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * stmp3xxx_rtc_wdt.h |
| * |
| * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| #ifndef __LINUX_STMP3XXX_RTC_WDT_H |
| #define __LINUX_STMP3XXX_RTC_WDT_H |
| |
| |
| --- a/include/linux/syscore_ops.h |
| +++ b/include/linux/syscore_ops.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * syscore_ops.h - System core operations. |
| * |
| * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #ifndef _LINUX_SYSCORE_OPS_H |
| |
| |
| --- a/include/linux/platform_data/i2c-imx.h |
| +++ b/include/linux/platform_data/i2c-imx.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * i2c.h - i.MX I2C driver header file |
| * |
| * Copyright (c) 2008, Darius Augulis <augulis.darius@gmail.com> |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __ASM_ARCH_I2C_H_ |
| |
| |
| --- a/include/linux/uwb/umc.h |
| +++ b/include/linux/uwb/umc.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * UWB Multi-interface Controller support. |
| * |
| * Copyright (C) 2007 Cambridge Silicon Radio Ltd. |
| - * |
| - * This file is released under the GPLv2 |
| * |
| * UMC (UWB Multi-interface Controller) capabilities (e.g., radio |
| * controller, host controller) are presented as devices on the "umc" |
| |
| |
| --- a/include/video/display_timing.h |
| +++ b/include/video/display_timing.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
| * |
| * description of display timings |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __LINUX_DISPLAY_TIMING_H |
| |
| |
| --- a/include/video/of_display_timing.h |
| +++ b/include/video/of_display_timing.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
| * |
| * display timings of helpers |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __LINUX_OF_DISPLAY_TIMING_H |
| |
| |
| --- a/include/video/of_videomode.h |
| +++ b/include/video/of_videomode.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
| * |
| * videomode of-helpers |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __LINUX_OF_VIDEOMODE_H |
| |
| |
| --- a/include/video/videomode.h |
| +++ b/include/video/videomode.h |
| @@ -1,9 +1,8 @@ |
| +/* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
| * |
| * generic videomode description |
| - * |
| - * This file is released under the GPLv2 |
| */ |
| |
| #ifndef __LINUX_VIDEOMODE_H |
| |
| |
| --- a/kernel/power/hibernate.c |
| +++ b/kernel/power/hibernate.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kernel/power/hibernate.c - Hibernation (a.k.a suspend-to-disk) support. |
| * |
| @@ -6,8 +7,6 @@ |
| * Copyright (c) 2004 Pavel Machek <pavel@ucw.cz> |
| * Copyright (c) 2009 Rafael J. Wysocki, Novell Inc. |
| * Copyright (C) 2012 Bojan Smojver <bojan@rexursive.com> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #define pr_fmt(fmt) "PM: " fmt |
| |
| |
| --- a/kernel/power/main.c |
| +++ b/kernel/power/main.c |
| @@ -1,11 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kernel/power/main.c - PM subsystem core functionality. |
| * |
| * Copyright (c) 2003 Patrick Mochel |
| * Copyright (c) 2003 Open Source Development Lab |
| - * |
| - * This file is released under the GPLv2 |
| - * |
| */ |
| |
| #include <linux/export.h> |
| |
| |
| --- a/kernel/power/snapshot.c |
| +++ b/kernel/power/snapshot.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * linux/kernel/power/snapshot.c |
| * |
| @@ -5,9 +6,6 @@ |
| * |
| * Copyright (C) 1998-2005 Pavel Machek <pavel@ucw.cz> |
| * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl> |
| - * |
| - * This file is released under the GPLv2. |
| - * |
| */ |
| |
| #define pr_fmt(fmt) "PM: " fmt |
| |
| |
| --- a/kernel/power/suspend.c |
| +++ b/kernel/power/suspend.c |
| @@ -1,11 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kernel/power/suspend.c - Suspend to RAM and standby functionality. |
| * |
| * Copyright (c) 2003 Patrick Mochel |
| * Copyright (c) 2003 Open Source Development Lab |
| * Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #define pr_fmt(fmt) "PM: " fmt |
| |
| |
| --- a/kernel/power/suspend_test.c |
| +++ b/kernel/power/suspend_test.c |
| @@ -1,9 +1,8 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * kernel/power/suspend_test.c - Suspend to RAM and standby test facility. |
| * |
| * Copyright (c) 2009 Pavel Machek <pavel@ucw.cz> |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/init.h> |
| |
| |
| --- a/kernel/power/swap.c |
| +++ b/kernel/power/swap.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * linux/kernel/power/swap.c |
| * |
| @@ -7,9 +8,6 @@ |
| * Copyright (C) 1998,2001-2005 Pavel Machek <pavel@ucw.cz> |
| * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl> |
| * Copyright (C) 2010-2012 Bojan Smojver <bojan@rexursive.com> |
| - * |
| - * This file is released under the GPLv2. |
| - * |
| */ |
| |
| #define pr_fmt(fmt) "PM: " fmt |
| |
| |
| --- a/kernel/power/user.c |
| +++ b/kernel/power/user.c |
| @@ -1,12 +1,10 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * linux/kernel/power/user.c |
| * |
| * This file provides the user space interface for software suspend/resume. |
| * |
| * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl> |
| - * |
| - * This file is released under the GPLv2. |
| - * |
| */ |
| |
| #include <linux/suspend.h> |
| |
| |
| --- a/lib/ratelimit.c |
| +++ b/lib/ratelimit.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * ratelimit.c - Do something with rate limit. |
| * |
| @@ -5,8 +6,6 @@ |
| * |
| * 2008-05-01 rewrite the function and use a ratelimit_state data struct as |
| * parameter. Now every user can use their own standalone ratelimit_state. |
| - * |
| - * This file is released under the GPLv2. |
| */ |
| |
| #include <linux/ratelimit.h> |
| |
| |
| --- a/mm/percpu-km.c |
| +++ b/mm/percpu-km.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * mm/percpu-km.c - kernel memory based chunk allocation |
| * |
| * Copyright (C) 2010 SUSE Linux Products GmbH |
| * Copyright (C) 2010 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| * |
| * Chunks are allocated as a contiguous kernel memory using gfp |
| * allocation. This is to be used on nommu architectures. |
| |
| |
| --- a/mm/percpu-stats.c |
| +++ b/mm/percpu-stats.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * mm/percpu-debug.c |
| * |
| * Copyright (C) 2017 Facebook Inc. |
| * Copyright (C) 2017 Dennis Zhou <dennisz@fb.com> |
| - * |
| - * This file is released under the GPLv2. |
| * |
| * Prints statistics about the percpu allocator and backing chunks. |
| */ |
| |
| |
| --- a/mm/percpu-vm.c |
| +++ b/mm/percpu-vm.c |
| @@ -1,10 +1,9 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * mm/percpu-vm.c - vmalloc area based chunk allocation |
| * |
| * Copyright (C) 2010 SUSE Linux Products GmbH |
| * Copyright (C) 2010 Tejun Heo <tj@kernel.org> |
| - * |
| - * This file is released under the GPLv2. |
| * |
| * Chunks are mapped into vmalloc areas and populated page by page. |
| * This is the default chunk allocator. |
| |
| |
| --- a/mm/percpu.c |
| +++ b/mm/percpu.c |
| @@ -1,3 +1,4 @@ |
| +// SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * mm/percpu.c - percpu memory allocator |
| * |
| @@ -6,8 +7,6 @@ |
| * |
| * Copyright (C) 2017 Facebook Inc. |
| * Copyright (C) 2017 Dennis Zhou <dennisszhou@gmail.com> |
| - * |
| - * This file is released under the GPLv2 license. |
| * |
| * The percpu allocator handles both static and dynamic areas. Percpu |
| * areas are allocated in chunks which are divided into units. There is |
| |
| |