kernel: locking: Add SPDX license ids to some files
Subsystems (2)
PATCH 1/1 kernel: locking: Add SPDX license ids to some files
Add GPL-2.0 license id to several files related to kernel locking and lock debugging. Remove less formal references to the GPL license.
Most of these files (with the exception of some files for 'fast headers' work) were introduced in the kernel between 2005 and 2009.
Signed-off-by Tim Bird <[email protected]>
--- include/linux/mutex_api.h | 1 + include/linux/spinlock_api.h | 1 + include/linux/spinlock_api_smp.h | 2 +- include/linux/spinlock_api_up.h | 2 +- include/linux/spinlock_types.h | 2 +- include/linux/spinlock_types_raw.h | 1 + include/linux/spinlock_types_up.h | 2 +- include/linux/spinlock_up.h | 2 +- kernel/locking/lockdep_states.h | 1 + kernel/locking/mutex-debug.c | 2 +- kernel/locking/spinlock_debug.c | 2 +- 11 files changed, 11 insertions(+), 7 deletions(-)
include/linux/mutex_api.h +1 -0
@@ -1 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/mutex.h>
include/linux/spinlock_api.h +1 -0
@@ -1 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/spinlock.h>
include/linux/spinlock_api_smp.h +1 -1
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPINLOCK_API_SMP_H#define __LINUX_SPINLOCK_API_SMP_H
@@ -12,7 +13,6 @@* (implemented in kernel/spinlock.c) * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar -* Released under the General Public License (GPL). */ int in_lock_functions (unsigned long addr);
include/linux/spinlock_api_up.h +1 -1
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPINLOCK_API_UP_H#define __LINUX_SPINLOCK_API_UP_H
@@ -11,7 +12,6 @@* spinlock API implementation on UP-nondebug (inlined implementation) * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar -* Released under the General Public License (GPL). */ #define in_lock_functions (ADDR ) 0
include/linux/spinlock_types.h +1 -1
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPINLOCK_TYPES_H#define __LINUX_SPINLOCK_TYPES_H
@@ -6,7 +7,6 @@* and initializers * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar -* Released under the General Public License (GPL). */ #include <linux/spinlock_types_raw.h>
include/linux/spinlock_types_raw.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPINLOCK_TYPES_RAW_H#define __LINUX_SPINLOCK_TYPES_RAW_H
include/linux/spinlock_types_up.h +1 -1
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPINLOCK_TYPES_UP_H#define __LINUX_SPINLOCK_TYPES_UP_H
@@ -9,7 +10,6 @@* include/linux/spinlock_types_up.h - spinlock type definitions for UP * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar -* Released under the General Public License (GPL). */ #ifdef CONFIG_DEBUG_SPINLOCK
include/linux/spinlock_up.h +1 -1
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPINLOCK_UP_H#define __LINUX_SPINLOCK_UP_H
@@ -12,7 +13,6 @@* include/linux/spinlock_up.h - UP-debug version of spinlocks. * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar -* Released under the General Public License (GPL). * * In the debug case, 1 means unlocked, 0 means locked. (the values * are inverted, to catch initialization bugs)
kernel/locking/lockdep_states.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Lockdep states, *
kernel/locking/mutex-debug.c +1 -1
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Debugging code for mutexes *
@@ -8,7 +9,6 @@* lock debugging, locking tree, deadlock detection started by: * * Copyright (C) 2004, LynuxWorks, Inc., Igor Manyilov, Bill Huey -* Released under the General Public License (GPL). */ #include <linux/mutex.h> #include <linux/delay.h>
kernel/locking/spinlock_debug.c +1 -1
@@ -1,6 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2005, Red Hat, Inc., Ingo Molnar -* Released under the General Public License (GPL). * * This file contains the spinlock/rwlock implementations for * DEBUG_SPINLOCK.
Signature · 1 line
2.43.0