[bootlin/training-materials updates] master: Kernel labs: module lab updates (4572a06b)

Michael Opdenacker michael.opdenacker at bootlin.com
Fri Apr 16 15:57:02 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/4572a06bb99238ecfc7904505cb1d457d2cf9458

>---------------------------------------------------------------

commit 4572a06bb99238ecfc7904505cb1d457d2cf9458
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Fri Apr 16 15:57:02 2021 +0200

    Kernel labs: module lab updates
    
    - To work with Linux 5.11
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

4572a06bb99238ecfc7904505cb1d457d2cf9458
 lab-data/linux-kernel/modules/nfsroot/root/hello/hello_version.c | 1 -
 labs/kernel-module-simple/kernel-module-simple.tex               | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

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 023faab4..6f0c0586 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,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/init.h>
 #include <linux/module.h>
-#include <linux/i2c.h>
 
 /* Add your code here */
 
diff --git a/labs/kernel-module-simple/kernel-module-simple.tex b/labs/kernel-module-simple/kernel-module-simple.tex
index f1026843..b4206ae1 100644
--- a/labs/kernel-module-simple/kernel-module-simple.tex
+++ b/labs/kernel-module-simple/kernel-module-simple.tex
@@ -68,10 +68,10 @@ parameter into account when you load it.
 
 Improve your module, so that when you unload it, it tells you how many
 seconds elapsed since you loaded it.  You can use the
-\kfunc{get_seconds} function to achieve this.
+\kfunc{ktime_get_seconds} function to achieve this.
 
 You may search for other drivers in the kernel sources using the
-\kfunc{get_seconds} function. Looking for other examples always helps!
+\kfunc{ktime_get_seconds} function. Looking for other examples always helps!
 
 \section{Following Linux coding standards}
 




More information about the training-materials-updates mailing list