[PATCH] radix tree test suite: Fix building radix tree test suite.

Peng Zhang posted 1 patch 2 years, 8 months ago
tools/testing/radix-tree/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[PATCH] radix tree test suite: Fix building radix tree test suite.
Posted by Peng Zhang 2 years, 8 months ago
The build of radix tree test suite failed due to a new internal header
file added to radix-tree.c. Adding the header directory in the Makefile
fixes it.

Signed-off-by: Peng Zhang <zhangpeng.00@bytedance.com>
---
 tools/testing/radix-tree/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
index caf32a9b9608..7527f738b4a1 100644
--- a/tools/testing/radix-tree/Makefile
+++ b/tools/testing/radix-tree/Makefile
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 
-CFLAGS += -I. -I../../include -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address \
-	  -fsanitize=undefined
+CFLAGS += -I. -I../../include -I../../../lib -g -Og -Wall \
+	  -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined
 LDFLAGS += -fsanitize=address -fsanitize=undefined
 LDLIBS+= -lpthread -lurcu
 TARGETS = main idr-test multiorder xarray maple
@@ -49,6 +49,7 @@ $(OFILES): Makefile *.h */*.h generated/map-shift.h generated/bit-length.h \
 	../../../include/linux/xarray.h \
 	../../../include/linux/maple_tree.h \
 	../../../include/linux/radix-tree.h \
+	../../../lib/radix-tree.h \
 	../../../include/linux/idr.h
 
 radix-tree.c: ../../../lib/radix-tree.c
-- 
2.20.1
Re: [PATCH] radix tree test suite: Fix building radix tree test suite.
Posted by Andrew Morton 2 years, 8 months ago
On Sun, 21 May 2023 17:54:50 +0800 Peng Zhang <zhangpeng.00@bytedance.com> wrote:

> The build of radix tree test suite failed due to a new internal header
> file added to radix-tree.c. Adding the header directory in the Makefile
> fixes it.

Thanks, I queued this as a fix against "radix-tree: move declarations
to header".