[bootlin/training-materials updates] master: kernel: serial: Fix a build warning (a4f88e3b)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:37 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/a4f88e3bf29b77bbf43a40156c9ebe6e92437082
>---------------------------------------------------------------
commit a4f88e3bf29b77bbf43a40156c9ebe6e92437082
Author: Miquel Raynal <miquel.raynal at bootlin.com>
Date: Fri May 7 11:55:34 2021 +0200
kernel: serial: Fix a build warning
This has been solved in the labs already.
Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
>---------------------------------------------------------------
a4f88e3bf29b77bbf43a40156c9ebe6e92437082
labs/kernel-serial-output/kernel-serial-output.tex | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/labs/kernel-serial-output/kernel-serial-output.tex b/labs/kernel-serial-output/kernel-serial-output.tex
index f14f838b..dbe7e62c 100644
--- a/labs/kernel-serial-output/kernel-serial-output.tex
+++ b/labs/kernel-serial-output/kernel-serial-output.tex
@@ -63,8 +63,7 @@ for each found device:
\begin{itemize}
\item To get an automatically assigned minor number.
\item To specify a name for the device file in {\em devtmpfs}. We
- propose to use {\tt devm\_kasprintf(\&pdev->dev, GFP\_KERNEL,
- "serial-\%x", platform\_get\_resource(pdev, IORESOURCE\_MEM, 0)->start)}.
+ "serial-\%llx", platform\_get\_resource(pdev, IORESOURCE\_MEM, 0)->start)}.
\kfunc{devm_kasprintf} allocates a buffer and runs \kfunc{kasprintf}
to fill its contents. \kfunc{platform_get_resource} is used to
retrieve the device physical address from the device tree.
More information about the training-materials-updates
mailing list