summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuanyang Wang <quanyang.wang@windriver.com>2019-09-16 10:49:05 +0800
committerSimon Horman <horms@verge.net.au>2019-09-16 09:19:26 +0200
commitb54816eff272324320c490d62dc36b27d2838732 (patch)
treebdc05e523ec9a6e3e345befab01d2fc40a79624a
parented2d6e31a02da3d2e69cf022071db0964992c30b (diff)
downloadkexec-tools-b54816eff272324320c490d62dc36b27d2838732.tar.gz
kexec/arm: undefine __NR_kexec_file_load for arm
In the kernel upstream commit 4ab65ba7a5cb ("ARM: add kexec_file_load system call number"), __NR_kexec_file_load for arm has been defined to be 401. This results that even if kexec_file_load isn't implemented for arm but the function is_kexec_file_load_implemented() will still return true. So undef __NR_kexec_file_load for arm architecture. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/kexec-syscall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h
index dac1c1f7..92d51d35 100644
--- a/kexec/kexec-syscall.h
+++ b/kexec/kexec-syscall.h
@@ -56,6 +56,10 @@
#endif
#endif /*ifndef __NR_kexec_load*/
+#ifdef __arm__
+#undef __NR_kexec_file_load
+#endif
+
#ifndef __NR_kexec_file_load
#ifdef __x86_64__