kobject: add SPDX identifiers to all kobject files
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Nov 2017 16:30:05 +0000 (17:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 17:36:43 +0000 (18:36 +0100)
It's good to have SPDX identifiers in all files to make it easier to
audit the kernel tree for correct licenses.

Update the kobject files files with the correct SPDX license identifier
based on the license text in the file itself.  The SPDX identifier is a
legally binding shorthand, which can be used instead of the full boiler
plate text.

This work is based on a script and data from Thomas Gleixner, Philippe
Ombredanne, and Kate Stewart.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/kobject.h
include/linux/kobject_ns.h
lib/kobject.c
lib/kobject_uevent.c
samples/kobject/kobject-example.c
samples/kobject/kset-example.c

index e0a6205caa71ad2fd78853c3eafb2b06e227e58e..ac59b67f131e0820a044b0d97a460d5dfedb9d44 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * kobject.h - generic kernel object infrastructure.
  *
index df32d2508290aae03f539d0434030bf8a355bbd9..7dd22132cc132fcb31642b6e8477163c1a0124c2 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /* Kernel object name space definitions
  *
  * Copyright (c) 2002-2003 Patrick Mochel
index 763d70a189410cb7307b87474801a662f631f806..450e771d0ac78e16c6f4310fbdcda779c199f639 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * kobject.c - library routines for handling generic kernel objects
  *
index c3e84edc47c965d40199b652ba78876cdaa9c70c..bbedaf359a1ec59d15dbb60e1d9dc54d5b87ecec 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * kernel userspace event delivery
  *
index 2e0740f06cd70d7e5837975ced3e2608a203afc1..6cc8bb36a4e8d45e78d50e4b90eb2833a5282bdd 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Sample kobject implementation
  *
index a55bff52bde3f51ff34b25c5a4af46cca4607a28..58543eca7f16c6901f5d14bc9c6a3d59cdfb9ae2 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Sample kset and ktype implementation
  *