summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 17:30:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-07 18:36:43 +0100
commitd9d16e16a3f82e88fec99222c9c7e26563b05688 (patch)
treef7941ec1cdb4e0cef97fb45f57e3041e088019f7
parent82bdf495169f2e4c25c5bd0f9384b687d358ebac (diff)
downloadop-kernel-dev-d9d16e16a3f82e88fec99222c9c7e26563b05688.zip
op-kernel-dev-d9d16e16a3f82e88fec99222c9c7e26563b05688.tar.gz
kobject: add SPDX identifiers to all kobject files
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>
-rw-r--r--include/linux/kobject.h1
-rw-r--r--include/linux/kobject_ns.h1
-rw-r--r--lib/kobject.c1
-rw-r--r--lib/kobject_uevent.c1
-rw-r--r--samples/kobject/kobject-example.c1
-rw-r--r--samples/kobject/kset-example.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index e0a6205..ac59b67 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* kobject.h - generic kernel object infrastructure.
*
diff --git a/include/linux/kobject_ns.h b/include/linux/kobject_ns.h
index df32d25..7dd2213 100644
--- a/include/linux/kobject_ns.h
+++ b/include/linux/kobject_ns.h
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/* Kernel object name space definitions
*
* Copyright (c) 2002-2003 Patrick Mochel
diff --git a/lib/kobject.c b/lib/kobject.c
index 763d70a..450e771 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* kobject.c - library routines for handling generic kernel objects
*
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index c3e84ed..bbedaf3 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* kernel userspace event delivery
*
diff --git a/samples/kobject/kobject-example.c b/samples/kobject/kobject-example.c
index 2e0740f..6cc8bb3 100644
--- a/samples/kobject/kobject-example.c
+++ b/samples/kobject/kobject-example.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Sample kobject implementation
*
diff --git a/samples/kobject/kset-example.c b/samples/kobject/kset-example.c
index a55bff5..58543ec 100644
--- a/samples/kobject/kset-example.c
+++ b/samples/kobject/kset-example.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Sample kset and ktype implementation
*
OpenPOWER on IntegriCloud