Commit c234c653 authored by Lorenzo Stoakes's avatar Lorenzo Stoakes Committed by Andrew Morton

tools: fix shared radix-tree build

The shared radix-tree build is not correctly recompiling when
lib/maple_tree.c and lib/test_maple_tree.c are modified - fix this by
adding these core components to the SHARED_DEPS list.

Additionally, add missing header guards to shared header files.

Link: https://lkml.kernel.org/r/20240924180724.112169-1-lorenzo.stoakes@oracle.com
Fixes: 74579d8d ("tools: separate out shared radix-tree components")
Signed-off-by: default avatarLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Tested-by: default avatarSidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent abf2050f
/* SPDX-License-Identifier: GPL-2.0+ */ /* SPDX-License-Identifier: GPL-2.0+ */
#ifndef __MAPLE_SHARED_H__
#define __MAPLE_SHARED_H__
#define CONFIG_DEBUG_MAPLE_TREE #define CONFIG_DEBUG_MAPLE_TREE
#define CONFIG_MAPLE_SEARCH #define CONFIG_MAPLE_SEARCH
...@@ -7,3 +9,5 @@ ...@@ -7,3 +9,5 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include "linux/init.h" #include "linux/init.h"
#endif /* __MAPLE_SHARED_H__ */
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
#ifndef __SHARED_H__
#define __SHARED_H__
#include <linux/types.h> #include <linux/types.h>
#include <linux/bug.h> #include <linux/bug.h>
...@@ -31,3 +33,5 @@ ...@@ -31,3 +33,5 @@
#ifndef dump_stack #ifndef dump_stack
#define dump_stack() assert(0) #define dump_stack() assert(0)
#endif #endif
#endif /* __SHARED_H__ */
...@@ -15,7 +15,9 @@ SHARED_DEPS = Makefile ../shared/shared.mk ../shared/*.h generated/map-shift.h \ ...@@ -15,7 +15,9 @@ SHARED_DEPS = Makefile ../shared/shared.mk ../shared/*.h generated/map-shift.h \
../../../include/linux/maple_tree.h \ ../../../include/linux/maple_tree.h \
../../../include/linux/radix-tree.h \ ../../../include/linux/radix-tree.h \
../../../lib/radix-tree.h \ ../../../lib/radix-tree.h \
../../../include/linux/idr.h ../../../include/linux/idr.h \
../../../lib/maple_tree.c \
../../../lib/test_maple_tree.c
ifndef SHIFT ifndef SHIFT
SHIFT=3 SHIFT=3
......
/* SPDX-License-Identifier: GPL-2.0+ */ /* SPDX-License-Identifier: GPL-2.0+ */
#ifndef __XARRAY_SHARED_H__
#define __XARRAY_SHARED_H__
#define XA_DEBUG #define XA_DEBUG
#include "shared.h" #include "shared.h"
#endif /* __XARRAY_SHARED_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment