Patch "selftests dma: fix compile error for dma_map_benchmark" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests dma: fix compile error for dma_map_benchmark

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-dma-fix-compile-error-for-dma_map_benchmar.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c4d97a3805a787eb3109898147f6af5fbcb132a7
Author: Yu Liao <liaoyu15@xxxxxxxxxx>
Date:   Tue Jun 14 20:02:35 2022 +0800

    selftests dma: fix compile error for dma_map_benchmark
    
    [ Upstream commit 12a29115be72dfc72372af9ded4bc4ae7113a729 ]
    
    When building selftests/dma:
    $ make -C tools/testing/selftests TARGETS=dma
    I hit the following compilation error:
    
    dma_map_benchmark.c:13:10: fatal error: linux/map_benchmark.h: No such file or directory
     #include <linux/map_benchmark.h>
              ^~~~~~~~~~~~~~~~~~~~~~~
    
    dma/Makefile does not include the map_benchmark.h path, so add
    more including path, and fix include order in dma_map_benchmark.c
    
    Fixes: 8ddde07a3d28 ("dma-mapping: benchmark: extract a common header file for map_benchmark definition")
    Signed-off-by: Yu Liao <liaoyu15@xxxxxxxxxx>
    Tested-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/dma/Makefile b/tools/testing/selftests/dma/Makefile
index aa8e8b5b3864..cd8c5ece1cba 100644
--- a/tools/testing/selftests/dma/Makefile
+++ b/tools/testing/selftests/dma/Makefile
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 CFLAGS += -I../../../../usr/include/
+CFLAGS += -I../../../../include/
 
 TEST_GEN_PROGS := dma_map_benchmark
 
diff --git a/tools/testing/selftests/dma/dma_map_benchmark.c b/tools/testing/selftests/dma/dma_map_benchmark.c
index c3b3c09e995e..5c997f17fcbd 100644
--- a/tools/testing/selftests/dma/dma_map_benchmark.c
+++ b/tools/testing/selftests/dma/dma_map_benchmark.c
@@ -10,8 +10,8 @@
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
-#include <linux/map_benchmark.h>
 #include <linux/types.h>
+#include <linux/map_benchmark.h>
 
 #define NSEC_PER_MSEC	1000000L
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux