[PATCH] testing/radix-tree: add cleanup.h to shared/linux

From: Sidhartha Kumar
Date: Tue Mar 25 2025 - 17:45:25 EST


Create a cleanup.h implementation in tools/testing/shared/linux to build
the idr code within userspace. This is needed after commit 6c8b0b835f00
added #include <linux/cleanup.h> to include/linux/idr.h to build the
userpsace radix-tree testsuite.

Fixes: 6c8b0b835f00 ("perf/core: Simplify perf_pmu_register()")
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@xxxxxxxxxx>
---
Once 6.14 is stable after the merge window this will have to be CCed to
the 6.14 stable branch

tools/testing/shared/linux/cleanup.h | 1 +
1 file changed, 1 insertion(+)
create mode 100644 tools/testing/shared/linux/cleanup.h

diff --git a/tools/testing/shared/linux/cleanup.h b/tools/testing/shared/linux/cleanup.h
new file mode 100644
index 000000000000..7c811dbb956c
--- /dev/null
+++ b/tools/testing/shared/linux/cleanup.h
@@ -0,0 +1 @@
+#include "../../../../include/linux/cleanup.h"
--
2.39.5