KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-9.4-func-28d7ff99300f3a897eb6419efafdbcf96978f637 Generating generated/map-shift.h Generating generated/bit-length.h cp ../shared/autoconf.h generated/autoconf.h cc -c -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined ../shared/xarray-shared.c -o xarray-shared.o sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < ../../../lib/radix-tree.c > radix-tree.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o radix-tree.o radix-tree.c sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < ../../../lib/idr.c > idr.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o idr.o idr.c cc -c -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined ../shared/linux.c -o linux.o cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o slab.o ../../lib/slab.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o find_bit.o ../../lib/find_bit.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o bitmap.o ../../lib/bitmap.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o hweight.o ../../lib/hweight.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o vsprintf.o ../../lib/vsprintf.c cc -I../shared -I. -I../../include -I../../arch/x86/include -I../../../lib -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o main.o main.c In file included from shared.h:12, from main.c:3: ../../../mm/vma.h:158:8: error: redefinition of ‘struct unmap_desc’ 158 | struct unmap_desc { | ^~~~~~~~~~ In file included from vma_internal.h:55, from shared.h:11: include/dup.h:1331:8: note: originally defined here 1331 | struct unmap_desc { | ^~~~~~~~~~ In file included from main.c:10: ../../../mm/vma.c: In function ‘unmap_region’: ../../../mm/vma.c:485:26: error: passing argument 2 of ‘unmap_vmas’ from incompatible pointer type [-Wincompatible-pointer-types] 485 | unmap_vmas(&tlb, unmap); | ^~~~~ | | | struct unmap_desc * In file included from vma_internal.h:54: include/stubs.h:391:74: note: expected ‘struct unmap_desc *’ but argument is of type ‘struct unmap_desc *’ 391 | static inline void unmap_vmas(struct mmu_gather *tlb, struct unmap_desc *unmap) | ~~~~~~~~~~~~~~~~~~~^~~~~ ../../../mm/vma.c:487:29: error: passing argument 2 of ‘free_pgtables’ from incompatible pointer type [-Wincompatible-pointer-types] 487 | free_pgtables(&tlb, unmap); | ^~~~~ | | | struct unmap_desc * include/stubs.h:395:77: note: expected ‘struct unmap_desc *’ but argument is of type ‘struct unmap_desc *’ 395 | static inline void free_pgtables(struct mmu_gather *tlb, struct unmap_desc *unmap) | ~~~~~~~~~~~~~~~~~~~^~~~~ make: *** [: main.o] Error 1 make vma failed