summaryrefslogtreecommitdiffstats
path: root/tools/testing/memblock/internal.h
diff options
context:
space:
mode:
authorKarolina Drobnik <karolinadrobnik@gmail.com>2022-02-02 12:03:09 +0100
committerMike Rapoport <rppt@linux.ibm.com>2022-02-20 07:44:37 +0100
commit16802e55dea9534c18a30bd8eeefea8a06337916 (patch)
tree3baa119284c22435f524bf65c86e0ef00968dae0 /tools/testing/memblock/internal.h
parenttools/include: Add debugfs.h stub (diff)
downloadlinux-16802e55dea9534c18a30bd8eeefea8a06337916.tar.xz
linux-16802e55dea9534c18a30bd8eeefea8a06337916.zip
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/internal.h')
-rw-r--r--tools/testing/memblock/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/memblock/internal.h b/tools/testing/memblock/internal.h
new file mode 100644
index 000000000000..94b52a8718b5
--- /dev/null
+++ b/tools/testing/memblock/internal.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+#ifndef _MM_INTERNAL_H
+#define _MM_INTERNAL_H
+
+struct page {};
+
+void memblock_free_pages(struct page *page, unsigned long pfn,
+ unsigned int order)
+{
+}
+
+#endif