meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0007-kexec.c-add-guard-around-ENOTSUP.patch
Khem Raj d3529a351d
kexec-tools-klibc: Update to latest 2.0.32 release
Add riscv64 support
Rework klibc support patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
2025-12-14 10:11:17 -08:00

35 lines
797 B
Diff

From 17e9da8d3c3c69f84e11c0457bd9fb8c4ee4274b Mon Sep 17 00:00:00 2001
From: Andrea Adami <andrea.adami@gmail.com>
Date: Tue, 17 Apr 2018 11:35:14 +0200
Subject: [PATCH] kexec.c: add guard around ENOTSUP
Fix
kexec.c: In function 'main':
kexec.c:1515:11: error: 'ENOTSUP' undeclared
Upstream-Status: Inappropriate [klibc specific]
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
kexec/kexec.c | 2 ++
1 file changed, 2 insertions(+)
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -1421,12 +1421,14 @@ static int do_kexec_file_load(int filein
*/
case EINVAL:
case ENOEXEC:
+#ifndef __KLIBC__
/*
* ENOTSUP can be unsupported image
* type or unsupported PE signature
* wrapper type, duh.
*/
case ENOTSUP:
+#endif
ret = EFALLBACK;
break;
}