summaryrefslogtreecommitdiffstats
path: root/include/errno.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-07-06 15:55:36 -0400
committerTom Rini <trini@konsulko.com>2016-07-06 15:55:36 -0400
commit99b8275797b9f4155ee65ec272629ae857d6a8bb (patch)
tree2fb36dd20668e626f03240bb4c2b2639e2f757a1 /include/errno.h
parent246fa47840f2b9aecc7308f140680dd00545c6a9 (diff)
parent703aaf76c2c06109fc36266767b2d1dcfce6f3ba (diff)
downloadtalos-obmc-uboot-99b8275797b9f4155ee65ec272629ae857d6a8bb.tar.gz
talos-obmc-uboot-99b8275797b9f4155ee65ec272629ae857d6a8bb.zip
Merge branch 'master' of git://git.denx.de/u-boot-tegra
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h
index 14ac3cb10b..15ece2f97f 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -1,4 +1,11 @@
+/*
+ * Copyright (C) 2014 Samsung Electronics
+ * Przemyslaw Marczak <p.marczak@samsung.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
#ifndef _ERRNO_H
+#define _ERRNO_H
#include <asm-generic/errno.h>
@@ -8,5 +15,10 @@ extern int errno;
#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 */
OpenPOWER on IntegriCloud