Re: [PATCH v3 12/18] vfio: selftests: Move IOVA allocator into iova_allocator.c

From: kernel test robot

Date: Sat Nov 22 2025 - 20:57:35 EST


Hi David,

kernel test robot noticed the following build errors:

[auto build test ERROR on fa804aa4ac1b091ef2ec2981f08a1c28aaeba8e7]

url: https://github.com/intel-lab-lkp/linux/commits/David-Matlack/vfio-selftests-Move-run-sh-into-scripts-directory/20251122-022109
base: fa804aa4ac1b091ef2ec2981f08a1c28aaeba8e7
patch link: https://lore.kernel.org/r/20251121181429.1421717-13-dmatlack%40google.com
patch subject: [PATCH v3 12/18] vfio: selftests: Move IOVA allocator into iova_allocator.c
config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251123/202511230306.1hPcCizQ-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251123/202511230306.1hPcCizQ-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/r/202511230306.1hPcCizQ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> tools/testing/selftests/vfio/lib/iova_allocator.c:2:10: fatal error: dirent.h: No such file or directory
2 | #include <dirent.h>
| ^~~~~~~~~~
compilation terminated.


vim +2 tools/testing/selftests/vfio/lib/iova_allocator.c

a1ab4208a86852 David Matlack 2025-11-21 @2 #include <dirent.h>
a1ab4208a86852 David Matlack 2025-11-21 3 #include <fcntl.h>
a1ab4208a86852 David Matlack 2025-11-21 4 #include <libgen.h>
a1ab4208a86852 David Matlack 2025-11-21 5 #include <stdint.h>
a1ab4208a86852 David Matlack 2025-11-21 6 #include <stdlib.h>
a1ab4208a86852 David Matlack 2025-11-21 7 #include <string.h>
a1ab4208a86852 David Matlack 2025-11-21 8 #include <unistd.h>
a1ab4208a86852 David Matlack 2025-11-21 9

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki