error-injection.h 462 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_ERROR_INJECTION_H
  3. #define _LINUX_ERROR_INJECTION_H
  4. #ifdef CONFIG_FUNCTION_ERROR_INJECTION
  5. #include <asm/error-injection.h>
  6. extern bool within_error_injection_list(unsigned long addr);
  7. #else /* !CONFIG_FUNCTION_ERROR_INJECTION */
  8. #include <asm-generic/error-injection.h>
  9. static inline bool within_error_injection_list(unsigned long addr)
  10. {
  11. return false;
  12. }
  13. #endif
  14. #endif /* _LINUX_ERROR_INJECTION_H */