소스 검색

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>
Greg Kroah-Hartman 8 년 전
부모
커밋
d9d16e16a3
6개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      include/linux/kobject.h
  2. 1 0
      include/linux/kobject_ns.h
  3. 1 0
      lib/kobject.c
  4. 1 0
      lib/kobject_uevent.c
  5. 1 0
      samples/kobject/kobject-example.c
  6. 1 0
      samples/kobject/kset-example.c

+ 1 - 0
include/linux/kobject.h

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * kobject.h - generic kernel object infrastructure.
  *

+ 1 - 0
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

+ 1 - 0
lib/kobject.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * kobject.c - library routines for handling generic kernel objects
  *

+ 1 - 0
lib/kobject_uevent.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * kernel userspace event delivery
  *

+ 1 - 0
samples/kobject/kobject-example.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Sample kobject implementation
  *

+ 1 - 0
samples/kobject/kset-example.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Sample kset and ktype implementation
  *