From: Andrew Morton <akpm@linux-foundation.org>
To: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Cc: linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>,
Baoquan He <bhe@redhat.com>,
Christoph Hellwig <hch@infradead.org>,
Oleksiy Avramchenko <oleksiy.avramchenko@sony.com>,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] lib/test_vmalloc.c: Fix compile error with CONFIG_TINY_RCU
Date: Sun, 20 Apr 2025 13:30:12 -0700 [thread overview]
Message-ID: <20250420133012.9ddb6f2241512eb6828378bd@linux-foundation.org> (raw)
In-Reply-To: <20250420142029.103169-1-urezki@gmail.com>
On Sun, 20 Apr 2025 16:20:29 +0200 "Uladzislau Rezki (Sony)" <urezki@gmail.com> wrote:
> When the kernel is built with CONFIG_TINY_RCU, compiling the
> test_vmalloc.c fails, due to conflicting definitions like
> "struct srcu_usage", etc. between "srcutiny.h" and "srcutree.h".
>
> It happens because of direct including the "srcutree.h" bypassing
> the automatic selection mechanism. A correct approach is to include
> a generic <linux/srcu.h> which properly select SRCU implementation
> based on a kernel configuration.
>
> Fix it by replacing the "srcutree.h" include with "srcu.h".
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202504190717.tJHs381f-lkp@intel.com/
> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Thanks.
This is a fix against the mm-unstable patch "lib/test_vmalloc.c:
replace RWSEM to SRCU for setup".
prev parent reply other threads:[~2025-04-20 20:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-20 14:20 Uladzislau Rezki (Sony)
2025-04-20 20:30 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250420133012.9ddb6f2241512eb6828378bd@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bhe@redhat.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=oleksiy.avramchenko@sony.com \
--cc=urezki@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox