Skip to content

Commit bf49d9d

Browse files
masahir0ygregkh
authored andcommitted
export,module: add SPDX GPL-2.0 license identifier to headers with no license
Commit b244131 ("License cleanup: add SPDX GPL-2.0 license identifier to files with no license") took care of a lot of files without any license information. These headers were not processed by the tool perhaps because they contain "GPL" in the code. I do not see any license boilerplate in them, so they fall back to GPL version 2 only, which is the project default. Signed-off-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 31f4f5b commit bf49d9d

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

include/asm-generic/export.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
12
#ifndef __ASM_GENERIC_EXPORT_H
23
#define __ASM_GENERIC_EXPORT_H
34

include/linux/export.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
12
#ifndef _LINUX_EXPORT_H
23
#define _LINUX_EXPORT_H
34

include/linux/license.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
12
#ifndef __LICENSE_H
23
#define __LICENSE_H
34

include/linux/module.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
#ifndef _LINUX_MODULE_H
2-
#define _LINUX_MODULE_H
1+
/* SPDX-License-Identifier: GPL-2.0-only */
32
/*
43
* Dynamic loading of modules into the kernel.
54
*
65
* Rewritten by Richard Henderson <[email protected]> Dec 1996
76
* Rewritten again by Rusty Russell, 2002
87
*/
8+
9+
#ifndef _LINUX_MODULE_H
10+
#define _LINUX_MODULE_H
11+
912
#include <linux/list.h>
1013
#include <linux/stat.h>
1114
#include <linux/compiler.h>

0 commit comments

Comments
 (0)