Skip to contentSkip to conversation

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

PATCH In review Sidhartha Kumar 2 participants 3 messages Mar 25, 2025 – Mar 26, 2025

lore
Share & tools
lore
#0 lore raw

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

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()")

---
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
tools/testing/shared/linux/cleanup.h new file +1 -0
new file mode 100644
index 000000000000..7c811dbb956c
@@ -0,0 +1 @@
+#include "../../../../include/linux/cleanup.h"
Signature · 1 line
2.39.5
#1 lore raw

Hi Sidhartha,

Quoted 4 lines · Sidhartha Kumar

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.

FWIW, similar fix was posted few days back:

https://lore.kernel.org/r/[email protected]

Thanks,
Ravi

#2 lore raw
Quoted 11 lines · Ravi Bangoria

Hi Sidhartha,

Quoted 4 lines · Sidhartha Kumar

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.

FWIW, similar fix was posted few days back:

https://lore.kernel.org/r/[email protected]

Thanks for pointing that out, this patch can be ignored then.

Sorry for the noise,
Sid

Quoted 3 lines

Thanks,
Ravi