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

Sidhartha Kumar posted 1 patch 10 months, 2 weeks ago
tools/testing/shared/linux/cleanup.h | 1 +
1 file changed, 1 insertion(+)
create mode 100644 tools/testing/shared/linux/cleanup.h
[PATCH] testing/radix-tree: add cleanup.h to shared/linux
Posted by Sidhartha Kumar 10 months, 2 weeks ago
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@oracle.com>
---
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
Re: [PATCH] testing/radix-tree: add cleanup.h to shared/linux
Posted by Ravi Bangoria 10 months, 2 weeks ago
Hi Sidhartha,

On 26-Mar-25 3:10 AM, Sidhartha Kumar wrote:
> 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/20250321-fix-radix-tree-build-v1-1-838a1e6540e2@samsung.com

Thanks,
Ravi
Re: [PATCH] testing/radix-tree: add cleanup.h to shared/linux
Posted by Sidhartha Kumar 10 months, 2 weeks ago
On 3/26/25 12:06 AM, Ravi Bangoria wrote:
> Hi Sidhartha,
> 
> On 26-Mar-25 3:10 AM, Sidhartha Kumar wrote:
>> 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/20250321-fix-radix-tree-build-v1-1-838a1e6540e2@samsung.com

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

Sorry for the noise,
Sid

> 
> Thanks,
> Ravi