[BL training-materials-updates] Kernel code: add SPDX info to keep checkpatch.pl happy
Michael Opdenacker
michael.opdenacker at bootlin.com
Sun Nov 25 09:03:53 CET 2018
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=f69fdfca68c8e1885f44a05c77680353d3b538ca
>---------------------------------------------------------------
commit f69fdfca68c8e1885f44a05c77680353d3b538ca
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Sun Nov 25 09:03:53 2018 +0100
Kernel code: add SPDX info to keep checkpatch.pl happy
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
f69fdfca68c8e1885f44a05c77680353d3b538ca
lab-data/linux-kernel/modules/nfsroot/root/debugging/drvbroken.c | 1 +
lab-data/linux-kernel/modules/nfsroot/root/hello/hello_version.c | 1 +
lab-data/linux-kernel/modules/nfsroot/root/nunchuk/nunchuk.c | 1 +
lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c | 1 +
.../kernel-driver-development-modules.tex | 2 ++
5 files changed, 6 insertions(+)
diff --git a/lab-data/linux-kernel/modules/nfsroot/root/debugging/drvbroken.c b/lab-data/linux-kernel/modules/nfsroot/root/debugging/drvbroken.c
index 33ecf39..5d7dc8f 100644
--- a/lab-data/linux-kernel/modules/nfsroot/root/debugging/drvbroken.c
+++ b/lab-data/linux-kernel/modules/nfsroot/root/debugging/drvbroken.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/* Voluntarily broken driver
* Copyright Thomas Petazzoni <thomas.petazzoni at bootlin.com>
* License: GNU General Public License 2.0 or later
diff --git a/lab-data/linux-kernel/modules/nfsroot/root/hello/hello_version.c b/lab-data/linux-kernel/modules/nfsroot/root/hello/hello_version.c
index 4fe61cf..023faab 100644
--- a/lab-data/linux-kernel/modules/nfsroot/root/hello/hello_version.c
+++ b/lab-data/linux-kernel/modules/nfsroot/root/hello/hello_version.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
#include <linux/init.h>
#include <linux/module.h>
#include <linux/i2c.h>
diff --git a/lab-data/linux-kernel/modules/nfsroot/root/nunchuk/nunchuk.c b/lab-data/linux-kernel/modules/nfsroot/root/nunchuk/nunchuk.c
index 4fe61cf..023faab 100644
--- a/lab-data/linux-kernel/modules/nfsroot/root/nunchuk/nunchuk.c
+++ b/lab-data/linux-kernel/modules/nfsroot/root/nunchuk/nunchuk.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
#include <linux/init.h>
#include <linux/module.h>
#include <linux/i2c.h>
diff --git a/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c b/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c
index 763a7a0..0804f34 100644
--- a/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c
+++ b/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>
diff --git a/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex b/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex
index a189bca..c951d93 100644
--- a/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex
+++ b/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex
@@ -3,6 +3,7 @@
\begin{frame}[fragile]
\frametitle{Hello Module 1/2}
\begin{minted}[fontsize=\scriptsize]{c}
+// SPDX-License-Identifier: GPL-2.0
/* hello.c */
#include <linux/init.h>
#include <linux/module.h>
@@ -267,6 +268,7 @@ config USB_SERIAL_NAVMAN
\begin{frame}[fragile]
\frametitle{Hello Module with Parameters 1/2}
\begin{minted}[fontsize=\small]{c}
+// SPDX-License-Identifier: GPL-2.0
/* hello_param.c */
#include <linux/init.h>
#include <linux/module.h>
More information about the training-materials-updates
mailing list