File Index
Files and directories
Sign in
FILE

internal.h

File preview with syntax highlighting.

linux-6.19.14/tools/testing/memblock/internal.h C
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2#ifndef _MM_INTERNAL_H
 3#define _MM_INTERNAL_H
 4
 5/*
 6 * Enable memblock_dbg() messages
 7 */
 8#ifdef MEMBLOCK_DEBUG
 9static int memblock_debug = 1;
10#endif
11
12#define pr_warn_ratelimited(fmt, ...)    printf(fmt, ##__VA_ARGS__)
13
14bool mirrored_kernelcore = false;
15
16struct page {};
17
18void memblock_free_pages(struct page *page, unsigned long pfn,
19			 unsigned int order)
20{
21}
22
23static inline void accept_memory(phys_addr_t start, unsigned long size)
24{
25}
26
27static inline unsigned long free_reserved_area(void *start, void *end,
28					       int poison, const char *s)
29{
30	return 0;
31}
32
33#endif
~/ Read-only file preview.