mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
22 lines
462 B
C
22 lines
462 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
#ifndef _LINUX_ERROR_INJECTION_H
|
||
|
#define _LINUX_ERROR_INJECTION_H
|
||
|
|
||
|
#ifdef CONFIG_FUNCTION_ERROR_INJECTION
|
||
|
|
||
|
#include <asm/error-injection.h>
|
||
|
|
||
|
extern bool within_error_injection_list(unsigned long addr);
|
||
|
|
||
|
#else /* !CONFIG_FUNCTION_ERROR_INJECTION */
|
||
|
|
||
|
#include <asm-generic/error-injection.h>
|
||
|
static inline bool within_error_injection_list(unsigned long addr)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif /* _LINUX_ERROR_INJECTION_H */
|