mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 16:38:53 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
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>
25 lines
426 B
C
25 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 */
|