aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-s390
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-s390')
-rw-r--r--include/asm-s390/unistd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-s390/unistd.h b/include/asm-s390/unistd.h
index 02b942d85c37..d49c54cb5505 100644
--- a/include/asm-s390/unistd.h
+++ b/include/asm-s390/unistd.h
@@ -342,9 +342,11 @@
342 342
343#ifdef __KERNEL__ 343#ifdef __KERNEL__
344 344
345#include <linux/err.h>
346
345#define __syscall_return(type, res) \ 347#define __syscall_return(type, res) \
346do { \ 348do { \
347 if ((unsigned long)(res) >= (unsigned long)(-4095)) {\ 349 if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \
348 errno = -(res); \ 350 errno = -(res); \
349 res = -1; \ 351 res = -1; \
350 } \ 352 } \