From 82a8b3fa284aa02cbfac4460acbc2f1cfa7866a3 Mon Sep 17 00:00:00 2001 From: Russell King Date: Mon, 6 Mar 2023 12:20:13 +0000 Subject: ARM: mark file-mode as unsupported Signed-off-by: Russell King --- kexec/arch/arm/kexec-zImage-arm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c index 7fc8dd9..28c88b7 100644 --- a/kexec/arch/arm/kexec-zImage-arm.c +++ b/kexec/arch/arm/kexec-zImage-arm.c @@ -513,6 +513,12 @@ int zImage_arm_load(int argc, char **argv, const char *buf, off_t len, }; static const char short_options[] = KEXEC_ARCH_OPT_STR ""; + /* We do not support file mode */ + if (info->file_mode) { + fprintf(stderr, "syscall kexec_file_load not implemented.\n"); + return -ENOSYS; + } + /* * Parse the command line arguments */ -- cgit