linux/mm/fail_page_alloc.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/fault-inject.h>
#include <linux/error-injection.h>
#include <linux/mm.h>

static struct {} fail_page_alloc =;

static int __init setup_fail_page_alloc(char *str)
{}
__setup();

bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
{}
ALLOW_ERROR_INJECTION();

#ifdef CONFIG_FAULT_INJECTION_DEBUG_FS

static int __init fail_page_alloc_debugfs(void)
{}

late_initcall(fail_page_alloc_debugfs);

#endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */