kernel_platform/common (Android common kernel, android16-6.12) from opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII), unmodified. This is the kernel Sony ships, so stock-built modules (e.g. the WLAN driver, whose source is not in the archive) match it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
29 lines
630 B
C
29 lines
630 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_ERROR_INJECTION_H
|
|
#define _LINUX_ERROR_INJECTION_H
|
|
|
|
#include <linux/compiler.h>
|
|
#include <linux/errno.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 -EOPNOTSUPP;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _LINUX_ERROR_INJECTION_H */
|