Re: [linux-next:master] [tools/testing/vma] 28d7ff9930: ktools.vma.make.fail

Lorenzo Stoakes <[email protected]>
Newsgroups dev.linux.lists.oe-lkp,org.kvack.linux-mm
Message-ID <[email protected]>
On Tue, Jan 27, 2026 at 02:13:11PM +0800, kernel test robot wrote:
>
>
> Hello,
>
> kernel test robot noticed "ktools.vma.make.fail" on:

Thanks to whoever set this up :) so far VMA userland tests have not been
exercised very much and I've had to find issues manually :)

>
> commit: 28d7ff99300f3a897eb6419efafdbcf96978f637 ("tools/testing/vma: separate out vma_internal.h into logical headers")
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

Hm this is strange, this works perfectly fine locally at this commit.

But it does seem this is duplicated so will fix-patch at this point in the series.

I notice the build is broken however at tip on next (will bisect), I guess the
bot hasn't got there yet? Seems somebody added a compiler directive that is not
stubbed out yet.

I might simply fix by adding to this commit as a stub to avoid hassle with
chasing down the offending patch...

Cheers, Lorenzo

>
> in testcase: ktools
> version:
> with following parameters:
>
> 	test: vma
>
>
>
> config: x86_64-rhel-9.4-func
> compiler: gcc-14
> test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (Skylake) with 32G memory
>
> (please refer to attached dmesg/kmsg for entire log/backtrace)
>
>
>
>
> 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 <[email protected]>
> | Closes: https://lore.kernel.org/oe-lkp/[email protected]
>
>
> 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: *** [<builtin>: main.o] Error 1
> make vma failed
>
>
>
> The kernel config and materials to reproduce are available at:
> https://download.01.org/0day-ci/archive/20260127/[email protected]
>
>
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.