[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <zzm3kdg3va37sspgea5uzzbr6agr5qq3kurtpwudpqrjltg47l@byvboxllxfsh>
Date: Wed, 24 Apr 2024 11:10:15 -0400
From: "Liam R. Howlett" <Liam.Howlett@...cle.com>
To: Luis Chamberlain <mcgrof@...nel.org>
Cc: akpm@...ux-foundation.org, willy@...radead.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, djwong@...nel.org, david@...morbit.com,
gost.dev@...sung.com, p.raghav@...sung.com, da.gomez@...sung.com
Subject: Re: [PATCH 1/2] tools: fix userspace compilation with new
test_xarray changes
* Luis Chamberlain <mcgrof@...nel.org> [240423 14:05]:
> Liam reported that compiling the test_xarray on userspace was broken.
> I was not even aware that was possible but you can via and you can
> run these tests in userspace with:
>
> make -C tools/testing/radix-tree
> ./tools/testing/radix-tree/xarray
>
> Add the two helpers we need to fix compilation. We don't need a
> userspace schedule() so just make it do nothing.
>
> Reported-by: "Liam R. Howlett" <Liam.Howlett@...cle.com>
> Signed-off-by: Luis Chamberlain <mcgrof@...nel.org>
Tested-by: Liam R. Howlett <Liam.Howlett@...cle.com>
> ---
> tools/testing/radix-tree/linux/kernel.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/testing/radix-tree/linux/kernel.h b/tools/testing/radix-tree/linux/kernel.h
> index c5c9d05f29da..c0a2bb785b92 100644
> --- a/tools/testing/radix-tree/linux/kernel.h
> +++ b/tools/testing/radix-tree/linux/kernel.h
> @@ -18,6 +18,8 @@
> #define pr_info printk
> #define pr_debug printk
> #define pr_cont printk
> +#define schedule()
> +#define PAGE_SHIFT 12
>
> #define __acquires(x)
> #define __releases(x)
> --
> 2.43.0
>
Powered by blists - more mailing lists