On Tue, Jul 18, 2023 at 01:10:25PM -0400, Liam R. Howlett wrote: > * kernel test robot <lkp@xxxxxxxxx> [230717 19:36]: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable > > head: 75ac3c8cee9c94691bc9001fcfb6214ae812bfa8 > > commit: f40b24c7c416b304b93115d66d02dc54e5d2f7d1 [209/215] mm/mmap: change detached vma locking scheme > > config: um-allnoconfig (https://download.01.org/0day-ci/archive/20230718/202307180750.Dk6xL6nG-lkp@xxxxxxxxx/config) > > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > > Just a status update on this.. > > The above config works with clang 16, I will reproduce it with the > periodic build of clang 17 once I locate a copy. I can reproduce this with LLVM 16.0.6 that I publish on kernel.org: https://kernel.org/pub/tools/llvm/ $ curl -LSso .config https://download.01.org/0day-ci/archive/20230718/202307180750.Dk6xL6nG-lkp@xxxxxxxxx/config $ make -skj"$(nproc)" ARCH=um LLVM=$PWD/llvm-16.0.6-x86_64/bin/ olddefconfig mm/mmap.o mm/mmap.c:2430:29: error: assigning to 'lockdep_map_p' from incompatible type 'void *' mt_detach.ma_external_lock = NULL; ^ ~~~~ 1 error generated. For the record, I see the same error with GCC 13.1.0 from kernel.org: https://kernel.org/pub/tools/crosstool/ In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/limits.h:6, from include/linux/kernel.h:16, from mm/mmap.c:12: mm/mmap.c: In function 'do_vmi_align_munmap': include/linux/stddef.h:8:14: error: incompatible types when assigning to type 'lockdep_map_p' from type 'void *' 8 | #define NULL ((void *)0) | ^ mm/mmap.c:2430:38: note: in expansion of macro 'NULL' 2430 | mt_detach.ma_external_lock = NULL; | ^~~~ > The llvm repositories currently don't have 17 [1], so this is delaying > the reproducibility and fix for the issue. As Nick said, they should. If there are issues or something is broken, please consider filing a bug on LLVM's issue tracker under Packaging: https://github.com/llvm/llvm-project/issues/new https://github.com/llvm/llvm-project/labels/packaging Cheers, Nathan