From: Simon Glass Date: Mon, 28 Feb 2022 19:08:21 +0000 (-0700) Subject: errno: Avoid including strings in SPL X-Git-Tag: baikal/mips/sdk5.9~3^2~118^2~14 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e24033e9ab1ffa67b6688e54f79a9a327df20142;p=uboot.git errno: Avoid including strings in SPL At present the header file defines this function in SPL but the file may not actually be built. This causes a build error if the option is enabled. Fix the condition in the header file. Signed-off-by: Simon Glass --- diff --git a/include/errno.h b/include/errno.h index 652ad67306..5a8816d0a1 100644 --- a/include/errno.h +++ b/include/errno.h @@ -25,7 +25,7 @@ extern int errno __errno_asm_label; * Return: string describing the error. If CONFIG_ERRNO_STR is not * defined an empty string is returned. */ -#ifdef CONFIG_ERRNO_STR +#if CONFIG_IS_ENABLED(ERRNO_STR) const char *errno_str(int errno); #else static const char error_message[] = "";