From 2c0162e8f367ca12c2141f24e04a06452c8a25bf Mon Sep 17 00:00:00 2001 From: Caspar Zhang Date: Thu, 23 May 2019 13:50:28 +0800 Subject: [PATCH] alinux: net/hookers: only enable on x86 platform read/write_cr0() are used in net/hookers.c, but they are only available on x86 platform. Adding a depend-on fields in Kconfig to disable this feature in other platforms. Reported-by: kbuild test robot Signed-off-by: Caspar Zhang Reviewed-by: Joseph Qi --- net/hookers/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/hookers/Kconfig b/net/hookers/Kconfig index bec94cc8d865..7d5b2bbb4de7 100644 --- a/net/hookers/Kconfig +++ b/net/hookers/Kconfig @@ -1,8 +1,9 @@ config HOOKERS tristate "Hooker service" default m + depends on X86 ---help--- Allow replacing and restore the function pointer in any order. See include/linux/hookers.h for details. - Say m if unsure. \ No newline at end of file + Say m if unsure. -- GitLab