tree: https://github.com/ammarfaizi2/linux-block akpm/mm/mm-unstable head: a2765ca8c916591ebc9af48b4e545922c0bd3c3b commit: c9f5ce5be2dfd3e5d5f36cac50b93c86982fcabc [187/223] mmap: convert __vma_adjust() to use vma iterator config: arm-randconfig-r004-20230106 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 8d9828ef5aa9688500657d36cd2aefbe12bbd162) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/ammarfaizi2/linux-block/commit/c9f5ce5be2dfd3e5d5f36cac50b93c86982fcabc git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block akpm/mm/mm-unstable git checkout c9f5ce5be2dfd3e5d5f36cac50b93c86982fcabc # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> mm/nommu.c:547:6: warning: no previous prototype for function 'vma_mas_store' [-Wmissing-prototypes] void vma_mas_store(struct vm_area_struct *vma, struct ma_state *mas) ^ mm/nommu.c:547:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void vma_mas_store(struct vm_area_struct *vma, struct ma_state *mas) ^ static >> mm/nommu.c:553:6: warning: no previous prototype for function 'vma_mas_remove' [-Wmissing-prototypes] void vma_mas_remove(struct vm_area_struct *vma, struct ma_state *mas) ^ mm/nommu.c:553:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void vma_mas_remove(struct vm_area_struct *vma, struct ma_state *mas) ^ static mm/nommu.c:1337:5: error: conflicting types for 'split_vma' int split_vma(struct mm_struct *mm, struct vm_area_struct *vma, ^ include/linux/mm.h:2826:12: note: previous declaration is here extern int split_vma(struct vma_iterator *vmi, struct vm_area_struct *, ^ mm/nommu.c:1502:20: error: incompatible pointer types passing 'struct mm_struct *' to parameter of type 'struct vma_iterator *' [-Werror,-Wincompatible-pointer-types] ret = split_vma(mm, vma, start, 1); ^~ include/linux/mm.h:2826:43: note: passing argument to parameter 'vmi' here extern int split_vma(struct vma_iterator *vmi, struct vm_area_struct *, ^ 2 warnings and 2 errors generated. vim +/vma_mas_store +547 mm/nommu.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 546 d4af56c5c7c678 Liam R. Howlett 2022-09-06 @547 void vma_mas_store(struct vm_area_struct *vma, struct ma_state *mas) d4af56c5c7c678 Liam R. Howlett 2022-09-06 548 { d4af56c5c7c678 Liam R. Howlett 2022-09-06 549 mas_set_range(mas, vma->vm_start, vma->vm_end - 1); d4af56c5c7c678 Liam R. Howlett 2022-09-06 550 mas_store_prealloc(mas, vma); d4af56c5c7c678 Liam R. Howlett 2022-09-06 551 } d4af56c5c7c678 Liam R. Howlett 2022-09-06 552 d4af56c5c7c678 Liam R. Howlett 2022-09-06 @553 void vma_mas_remove(struct vm_area_struct *vma, struct ma_state *mas) d4af56c5c7c678 Liam R. Howlett 2022-09-06 554 { d4af56c5c7c678 Liam R. Howlett 2022-09-06 555 mas->index = vma->vm_start; d4af56c5c7c678 Liam R. Howlett 2022-09-06 556 mas->last = vma->vm_end - 1; d4af56c5c7c678 Liam R. Howlett 2022-09-06 557 mas_store_prealloc(mas, NULL); d4af56c5c7c678 Liam R. Howlett 2022-09-06 558 } d4af56c5c7c678 Liam R. Howlett 2022-09-06 559 :::::: The code at line 547 was first introduced by commit :::::: d4af56c5c7c6781ca6ca8075e2cf5bc119ed33d1 mm: start tracking VMAs with maple tree :::::: TO: Liam R. Howlett :::::: CC: Andrew Morton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests