]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/errno.h
treewide: replace #include <asm-generic/errno.h> with <linux/errno.h>
[karo-tx-uboot.git] / include / errno.h
index 39426818e0c6215aa91b286c8c26906e468dac0a..e0c670a16c32c80d0dfe7e95612b70a5cb07ec05 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef _ERRNO_H
 #define _ERRNO_H
 
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 extern int errno;
 
@@ -15,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 */