commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
28 lines
607 B
C
28 lines
607 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_ERROR_INJECTION_H
|
|
#define _LINUX_ERROR_INJECTION_H
|
|
|
|
#include <linux/compiler.h>
|
|
#include <asm-generic/error-injection.h>
|
|
|
|
#ifdef CONFIG_FUNCTION_ERROR_INJECTION
|
|
|
|
extern bool within_error_injection_list(unsigned long addr);
|
|
extern int get_injectable_error_type(unsigned long addr);
|
|
|
|
#else /* !CONFIG_FUNCTION_ERROR_INJECTION */
|
|
|
|
static inline bool within_error_injection_list(unsigned long addr)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline int get_injectable_error_type(unsigned long addr)
|
|
{
|
|
return EI_ETYPE_NONE;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _LINUX_ERROR_INJECTION_H */
|