]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/errno.h
colibri_imx6: switch to zimage
[thirdparty/u-boot.git] / include / errno.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
00e9e6d1
SG
2/*
3 * Copyright (C) 2014 Samsung Electronics
4 * Przemyslaw Marczak <p.marczak@samsung.com>
00e9e6d1 5 */
65cd3fa8 6#ifndef _ERRNO_H
00e9e6d1 7#define _ERRNO_H
65cd3fa8 8
5d97dff0 9#include <linux/errno.h>
65cd3fa8
WD
10
11extern int errno;
12
13#define __set_errno(val) do { errno = val; } while (0)
14
59345b1f
PM
15#ifdef CONFIG_ERRNO_STR
16const char *errno_str(int errno);
862887d8
SG
17#else
18static inline const char *errno_str(int errno)
19{
20 return 0;
21}
59345b1f 22#endif
65cd3fa8 23#endif /* _ERRNO_H */