radix-tree: add missing cleanup.hAdd shared cleanup.h header for radix-tree testing tools.Fixes build error found with kdevops [1]:cc -I../shared -I. -I../../include -I../../../lib -g -Og -Wall
radix-tree: add missing cleanup.hAdd shared cleanup.h header for radix-tree testing tools.Fixes build error found with kdevops [1]:cc -I../shared -I. -I../../include -I../../../lib -g -Og -Wall-D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -oradix-tree.o radix-tree.cIn file included from ../shared/linux/idr.h:1, from radix-tree.c:18:../shared/linux/../../../../include/linux/idr.h:18:10: fatal error:linux/cleanup.h: No such file or directory 18 | #include <linux/cleanup.h> | ^~~~~~~~~~~~~~~~~compilation terminated.make: *** [<builtin>: radix-tree.o] Error 1[1] https://github.com/linux-kdevops/kdevopshttps://github.com/linux-kdevops/linux-mm-kpd/actions/runs/13971648496/job/39114756401[[email protected]: remove unneeded header guards, per Sidhartha]Link: https://lkml.kernel.org/r/[email protected]Fixes: 6c8b0b835f00 ("perf/core: Simplify perf_pmu_register()")Signed-off-by: Daniel Gomez <[email protected]>Cc: Daniel Gomez <[email protected]>Cc: Ingo Molnar <[email protected]>Cc: Liam Howlett <[email protected]>Cc: Luis Chamberalin <[email protected]>Cc: Matthew Wilcox (Oracle) <[email protected]>Cc: Ravi Bangoria <[email protected]>Cc: Peter Zijlstra <[email protected]>Cc: Sidhartha Kumar <[email protected]>Signed-off-by: Andrew Morton <[email protected]>
show more ...
lib/rbtree: enable userland test suite for rbtree related data structurePatch series "lib/interval_tree: add some test cases and cleanup", v2.Since rbtree/augmented tree/interval tree share simil
lib/rbtree: enable userland test suite for rbtree related data structurePatch series "lib/interval_tree: add some test cases and cleanup", v2.Since rbtree/augmented tree/interval tree share similar data structure,besides new cases for interval tree, this patch set also does cleanup forothers.This patch (of 7):Currently we have some tests for rbtree related data structure, e.g. rbtree, augmented rbtree, interval tree, in lib/ as kernel module.To facilitate the test and debug for those fundamental data structure,this patch enable those tests in userland.Link: https://lkml.kernel.org/r/[email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Wei Yang <[email protected]>Cc: Matthew Wilcox <[email protected]>Cc: Michel Lespinasse <[email protected]>Cc: Jason Gunthorpe <[email protected]>Signed-off-by: Andrew Morton <[email protected]>
tools: fix atomic_set() definition to set the value correctlyCurrently vma test is failing because of the new vma_assert_attached()assertion. The check is failing because previous refcount_set()
tools: fix atomic_set() definition to set the value correctlyCurrently vma test is failing because of the new vma_assert_attached()assertion. The check is failing because previous refcount_set() insidevma_mark_attached() is a NoOp. Fix the definition of atomic_set() tocorrectly set the value of the atomic.Link: https://lkml.kernel.org/r/[email protected]Fixes: 9325b8b5a1cb ("tools: add skeleton code for userland testing of VMA logic")Signed-off-by: Suren Baghdasaryan <[email protected]>Reviewed-by: Lorenzo Stoakes <[email protected]>Cc: Jann Horn <[email protected]>Cc: Liam R. Howlett <[email protected]>Cc: Vlastimil Babka <[email protected]>Cc: <[email protected]>Signed-off-by: Andrew Morton <[email protected]>
Merge tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblockPull memblock updates from Mike Rapoport: - new memblock_estimated_nr_free_pages() helper to replace
Merge tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblockPull memblock updates from Mike Rapoport: - new memblock_estimated_nr_free_pages() helper to replace totalram_pages() which is less accurate when CONFIG_DEFERRED_STRUCT_PAGE_INIT is set - fixes for memblock tests* tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock: s390/mm: get estimated free pages by memblock api kernel/fork.c: get estimated free pages by memblock api mm/memblock: introduce a new helper memblock_estimated_nr_free_pages() memblock test: fix implicit declaration of function 'strscpy' memblock test: fix implicit declaration of function 'isspace' memblock test: fix implicit declaration of function 'memparse' memblock test: add the definition of __setup() memblock test: fix implicit declaration of function 'virt_to_phys' tools/testing: abstract two init.h into common include directory memblock tests: include export.h in linkage.h as kernel dose memblock tests: include memory_hotplug.h in mmzone.h as kernel dose
tools: separate out shared radix-tree componentsThe core components contained within the radix-tree tests which provideshims for kernel headers and access to the maple tree are useful fortesting
tools: separate out shared radix-tree componentsThe core components contained within the radix-tree tests which provideshims for kernel headers and access to the maple tree are useful fortesting other things, so separate them out and make the radix tree testsdependent on the shared components.This lays the groundwork for us to add VMA tests of the newly introducedvma.c file.Link: https://lkml.kernel.org/r/1ee720c265808168e0d75608e687607d77c36719.1722251717.git.lorenzo.stoakes@oracle.comSigned-off-by: Lorenzo Stoakes <[email protected]>Acked-by: Vlastimil Babka <[email protected]>Reviewed-by: Liam R. Howlett <[email protected]>Cc: Alexander Viro <[email protected]>Cc: Brendan Higgins <[email protected]>Cc: Christian Brauner <[email protected]>Cc: David Gow <[email protected]>Cc: Eric W. Biederman <[email protected]>Cc: Jan Kara <[email protected]>Cc: Kees Cook <[email protected]>Cc: Matthew Wilcox (Oracle) <[email protected]>Cc: Rae Moar <[email protected]>Cc: SeongJae Park <[email protected]>Cc: Shuah Khan <[email protected]>Cc: Suren Baghdasaryan <[email protected]>Cc: Pengfei Xu <[email protected]>Signed-off-by: Andrew Morton <[email protected]>