linux/mm/failslab.c

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

static struct {} failslab =;

int should_failslab(struct kmem_cache *s, gfp_t gfpflags)
{}
ALLOW_ERROR_INJECTION();

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

#ifdef CONFIG_FAULT_INJECTION_DEBUG_FS
static int __init failslab_debugfs_init(void)
{}

late_initcall(failslab_debugfs_init);

#endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */