aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/Makefile
diff options
context:
space:
mode:
authorWang Kefeng <wangkefeng.wang@huawei.com>2022-12-04 04:46:40 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-12-07 14:08:38 +0000
commitaaa4dd1b47f5ff5ef477fec5dcc6c397b457f1c2 (patch)
tree3cd94c5410ffe0e7ddd3ddc6c758a531d99a7cb9 /arch/arm/lib/Makefile
parentba290d4f1f7733732896567d2a1874f01e20fff4 (diff)
downloadlinux-aaa4dd1b47f5ff5ef477fec5dcc6c397b457f1c2.tar.gz
ARM: 9279/1: support function error injection
This enables HAVE_FUNCTION_ERROR_INJECTION by adding necessary regs_set_return_value() and override_function_with_return(). Simply tested according to Documentation/fault-injection/fault-injection.rst. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/lib/Makefile')
-rw-r--r--arch/arm/lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 42fb75c06647f8..650404be6768a0 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -44,3 +44,5 @@ ifeq ($(CONFIG_KERNEL_MODE_NEON),y)
CFLAGS_xor-neon.o += $(NEON_FLAGS)
obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o
endif
+
+obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o