mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
5d97dff042
Now, include/linux/errno.h is a wrapper of <asm-generic/errno.h>. Replace all include directives for <asm-generic/errno.h> with <linux/errno.h>. <asm-generic/...> is supposed to be included from <asm/...> when arch-headers fall back into generic implementation. Generally, they should not be directly included from .c files. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> [trini: Add drivers/usb/host/xhci-rockchip.c] Signed-off-by: Tom Rini <trini@konsulko.com>
24 lines
426 B
C
24 lines
426 B
C
/*
|
|
* Copyright (C) 2014 Samsung Electronics
|
|
* Przemyslaw Marczak <p.marczak@samsung.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#ifndef _ERRNO_H
|
|
#define _ERRNO_H
|
|
|
|
#include <linux/errno.h>
|
|
|
|
extern int errno;
|
|
|
|
#define __set_errno(val) do { errno = val; } while (0)
|
|
|
|
#ifdef CONFIG_ERRNO_STR
|
|
const char *errno_str(int errno);
|
|
#else
|
|
static inline const char *errno_str(int errno)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
#endif /* _ERRNO_H */
|