diff options
author | Karolina Drobnik <karolinadrobnik@gmail.com> | 2022-02-02 14:03:09 +0300 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-02-20 09:44:37 +0300 |
commit | 16802e55dea9534c18a30bd8eeefea8a06337916 (patch) | |
tree | 3baa119284c22435f524bf65c86e0ef00968dae0 /tools/testing/memblock/mmzone.c | |
parent | 62183279ad2f52d36b40365eb3a27c7a4a2284f8 (diff) | |
download | linux-16802e55dea9534c18a30bd8eeefea8a06337916.tar.xz |
memblock tests: Add skeleton of the memblock simulator
Add basic project files, together with local stubs of required headers.
Update tools/include/slab.h to include definitions used by memblock.
Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Signed-off-by: Mike Rapoport <rppt@kernel.org>
Link: https://lore.kernel.org/r/d296fceb023a04b316a31fbff9acf1e76ac684e4.1643796665.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/testing/memblock/mmzone.c')
-rw-r--r-- | tools/testing/memblock/mmzone.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/testing/memblock/mmzone.c b/tools/testing/memblock/mmzone.c new file mode 100644 index 000000000000..7b0909e8b759 --- /dev/null +++ b/tools/testing/memblock/mmzone.c @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#include <linux/mmzone.h> + +struct pglist_data *first_online_pgdat(void) +{ + return NULL; +} + +struct pglist_data *next_online_pgdat(struct pglist_data *pgdat) +{ + return NULL; +} + +void reserve_bootmem_region(phys_addr_t start, phys_addr_t end) +{ +} + +void atomic_long_set(atomic_long_t *v, long i) +{ +} |