kexec/arm: undefine __NR_kexec_file_load for arm
Subsystems (2)
PATCH 1/1 kexec/arm: undefine __NR_kexec_file_load for arm
From: Quanyang Wang <[email protected]>
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.
--- kexec/kexec-syscall.h | 4 ++++ 1 file changed, 4 insertions(+)
kexec/kexec-syscall.h +4 -0
@@ -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__
Signature · 7 lines
2.17.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 11 lines · On Mon, Sep 16, 2019 at 10:49:05AM +0800, [email protected] wrote:
From: Quanyang Wang <[email protected]>
In the kernel upstream commit
4ab65ba7a5cb
("ARM: addkexec_file_loadsystem call number"),__NR_kexec_file_loadfor arm has been defined to be 401. This results that even ifkexec_file_loadisn't implemented for arm but the functionis_kexec_file_load_implemented()will still return true. So undef__NR_kexec_file_loadfor arm architecture.Signed-off-by Quanyang Wang <[email protected]>
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec