1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2014 Samsung Electronics
4 * Przemyslaw Marczak <p.marczak@samsung.com>
9 #include <linux/errno.h>
13 #define __set_errno(val) do { errno = val; } while (0)
16 * errno_str() - get description for error number
18 * @errno: error number (negative in case of error)
19 * Return: string describing the error. If CONFIG_ERRNO_STR is not
20 * defined an empty string is returned.
22 #ifdef CONFIG_ERRNO_STR
23 const char *errno_str(int errno);
25 static const char error_message[] = "";
27 static inline const char *errno_str(int errno)