Re: [tip:locking/core] [cleanup] 3931d4b980: ktools.maple.make.fail

Marco Elver <[email protected]>
Newsgroups dev.linux.lists.oe-lkp,org.kernel.vger.linux-kernel
Message-ID <CANpmjNOJ4f+x4y5na-oK7dtQazz3AoeSZPrmaLUMXx4=BGAQ-w@mail.gmail.com>
On Mon, 26 Jan 2026 at 12:54, Marco Elver <[email protected]> wrote:
>
> On Mon, 26 Jan 2026 at 08:37, kernel test robot <[email protected]> wrote:
> > Hello,
> >
> > kernel test robot noticed "ktools.maple.make.fail" on:
> >
> > commit: 3931d4b980398012b66c8ff203bfa2ab3df71a71 ("cleanup: Basic compatibility with context analysis")
> > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git locking/core
> >
> > in testcase: ktools
> > version:
> > with following parameters:
> >
> >         test: radix-tree/maple
> >
> > 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-3931d4b980398012b66c8ff203bfa2ab3df71a71
> >
> > Generating generated/map-shift.h
> > Generating generated/bit-length.h
> > cp ../shared/autoconf.h generated/autoconf.h
> > 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
> > 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
> > In file included from ../shared/linux/cleanup.h:2,
> >                  from ../shared/linux/../../../../include/linux/idr.h:18,
> >                  from ../shared/linux/idr.h:5,
> >                  from radix-tree.c:18:
> > ../shared/linux/../../../../include/linux/idr.h: In function ‘class_idr_alloc_destructor’:
> > ../shared/linux/../../../../include/linux/cleanup.h:283:9: error: expected declaration specifiers before ‘__no_context_analysis’
> >   283 |         __no_context_analysis                                           \
> >       |         ^~~~~~~~~~~~~~~~~~~~~
>
> Sigh, apparently user space code in tools/ now liberally uses headers
> from include/linux/ directly. E.g. see previous fixup be8254f69446
> ("radix-tree: add missing cleanup.h"). I guess we have to somehow
> import some of these definitions into tools/testing/shared/linux until
> it works.

Fix: https://lore.kernel.org/all/[email protected]/
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.