From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Li Wang <liwang@redhat.com>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v1 1/1] radix-tree: Replace kernel.h with the necessary inclusions
Date: Wed, 17 Nov 2021 14:55:07 +0200 [thread overview]
Message-ID: <YZT7q+Eo9mudqOLF@smile.fi.intel.com> (raw)
In-Reply-To: <CAEemH2edgtA+XOY8WjgwFD-50qcw_MGFSgjjBjgKVi_dAwtR6w@mail.gmail.com>
On Wed, Nov 17, 2021 at 03:01:12PM +0800, Li Wang wrote:
Thanks for the report! And do not top post next time, please.
> This patch breaks the radix tree test building.
Yes and no. The dirty tricks with kernel headers that tools/ do is what has
been revealed by this patch.
> # make -C tools/testing/radix-tree/
> make: Entering directory '/root/linux-5.16-rc1/tools/testing/radix-tree'
> cc -I. -I../../include -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address
> -fsanitize=undefined -c -o main.o main.c
> In file included from ./linux/../../../../include/linux/radix-tree.h:14,
> from ./linux/radix-tree.h:5,
> from main.c:10:
> ./linux/lockdep.h:7:38: error: unknown type name ‘spinlock_t’; did you mean
> ‘clock_t’?
> 7 | static inline void lockdep_set_class(spinlock_t *lock,
> | ^~~~~~~~~~
> | clock_t
> In file included from ./linux/radix-tree.h:5,
> from main.c:10:
> ./linux/../../../../include/linux/radix-tree.h:15:10: fatal error:
> linux/math.h: No such file or directory
> 15 | #include <linux/math.h>
> | ^~~~~~~~~~~~~~
> compilation terminated.
> make: *** [<builtin>: main.o] Error 1
> make: Leaving directory '/root/linux-5.16-rc1/tools/testing/radix-tree'
So, add that header to the bunch of others in the tools/
Something like this? (not even compile-tested)
diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
index aa6abfe0749c..fa66853416d5 100644
--- a/tools/testing/radix-tree/Makefile
+++ b/tools/testing/radix-tree/Makefile
@@ -40,6 +40,7 @@ $(OFILES): Makefile *.h */*.h generated/map-shift.h \
../../include/asm/*.h \
../../../include/linux/xarray.h \
../../../include/linux/radix-tree.h \
+ ../../../include/linux/math.h \
../../../include/linux/idr.h
radix-tree.c: ../../../lib/radix-tree.c
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2021-11-17 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 15:05 [PATCH v1 1/1] radix-tree: Replace kernel.h with the necessary inclusions Andy Shevchenko
[not found] ` <CAEemH2edgtA+XOY8WjgwFD-50qcw_MGFSgjjBjgKVi_dAwtR6w@mail.gmail.com>
2021-11-17 12:55 ` Andy Shevchenko [this message]
2021-12-13 20:44 ` Andy Shevchenko
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=YZT7q+Eo9mudqOLF@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liwang@redhat.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