From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
Kate Stewart <kstewart@linuxfoundation.org>,
Philippe Ombredanne <pombredanne@nexb.com>
Subject: [PATCH 1/5] kobject: add SPDX identifiers to all kobject files
Date: Tue, 7 Nov 2017 17:30:05 +0100 [thread overview]
Message-ID: <20171107163009.13544-1-gregkh@linuxfoundation.org> (raw)
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 | 1 +
include/linux/kobject_ns.h | 1 +
lib/kobject.c | 1 +
lib/kobject_uevent.c | 1 +
samples/kobject/kobject-example.c | 1 +
samples/kobject/kset-example.c | 1 +
6 files changed, 6 insertions(+)
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index e0a6205caa71..ac59b67f131e 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 df32d2508290..7dd22132cc13 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 763d70a18941..450e771d0ac7 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 f237a09a5862..070aa1412827 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 2e0740f06cd7..6cc8bb36a4e8 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 a55bff52bde3..58543eca7f16 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
*
--
2.15.0
next reply other threads:[~2017-11-07 16:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-07 16:30 Greg Kroah-Hartman [this message]
2017-11-07 16:30 ` [PATCH 2/5] kobject: Remove redundant license text Greg Kroah-Hartman
2017-11-07 16:30 ` [PATCH 3/5] driver core: add SPDX identifiers to all driver core files Greg Kroah-Hartman
2017-11-08 19:21 ` William Breathitt Gray
2017-11-07 16:30 ` [PATCH 4/5] drivers: core: arch_topology.c: move SPDX tag to top of the file Greg Kroah-Hartman
2017-11-07 16:30 ` [PATCH 5/5] driver core: Remove redundant license text Greg Kroah-Hartman
2017-11-08 18:26 ` Luis R. Rodriguez
2017-11-09 13:47 ` Greg Kroah-Hartman
2017-11-09 14:00 ` Christoph Hellwig
2017-11-09 16:44 ` Russell King
-- strict thread matches above, loose matches on Subject: below --
2017-11-08 22:50 [PATCH 1/5] kobject: add SPDX identifiers to all kobject files Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171107163009.13544-1-gregkh@linuxfoundation.org \
--to=gregkh@linuxfoundation.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pombredanne@nexb.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.