[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250420133012.9ddb6f2241512eb6828378bd@linux-foundation.org>
Date: Sun, 20 Apr 2025 13:30:12 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Uladzislau Rezki (Sony)" <urezki@...il.com>
Cc: linux-mm@...ck.org, LKML <linux-kernel@...r.kernel.org>, Baoquan He
<bhe@...hat.com>, Christoph Hellwig <hch@...radead.org>, Oleksiy
Avramchenko <oleksiy.avramchenko@...y.com>, kernel test robot
<lkp@...el.com>
Subject: Re: [PATCH] lib/test_vmalloc.c: Fix compile error with
CONFIG_TINY_RCU
On Sun, 20 Apr 2025 16:20:29 +0200 "Uladzislau Rezki (Sony)" <urezki@...il.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@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202504190717.tJHs381f-lkp@intel.com/
> Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
Thanks.
This is a fix against the mm-unstable patch "lib/test_vmalloc.c:
replace RWSEM to SRCU for setup".
Powered by blists - more mailing lists