From 3e05a75f57d6d2bb653671ca3847c4c71499d06d Mon Sep 17 00:00:00 2001 From: Maxime Chevallier Date: Thu, 14 Dec 2023 15:57:04 +0100 Subject: [PATCH] labs: kernel-dma: Remove trailing parenthesis from kfunc name the \kfunc macro doesn't like having the trailing () in a function name, it adds them automatically. Adding the () actually produces a broken link. Signed-off-by: Maxime Chevallier --- labs/kernel-serial-dma/kernel-serial-dma.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/kernel-serial-dma/kernel-serial-dma.tex b/labs/kernel-serial-dma/kernel-serial-dma.tex index 140a97b423..1dd23c6258 100644 --- a/labs/kernel-serial-dma/kernel-serial-dma.tex +++ b/labs/kernel-serial-dma/kernel-serial-dma.tex @@ -65,7 +65,7 @@ \section{Prepare the DMA controller} channel properties and their names. While uart2 seem to be connected to the DMA controller through two different channels (one for each direction), uart4 is not. Hence, when requesting the channels with -\kfunc{dma_request_chan()}, we must take care to check and return the error code +\kfunc{dma_request_chan}, we must take care to check and return the error code wrapped in the returned \kstruct{dma_chan} pointer. This can be done with the \code{IS_ERR()} and \code{PTR_ERR()} macros. You may display the corresponding error string with {\tt \%pe}! Also make sure that this case is correctly handled