diff options
Diffstat (limited to 'include/asm-v850')
-rw-r--r-- | include/asm-v850/unistd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-v850/unistd.h b/include/asm-v850/unistd.h index bcb44bfe577a..552b7c873a57 100644 --- a/include/asm-v850/unistd.h +++ b/include/asm-v850/unistd.h | |||
@@ -238,12 +238,13 @@ | |||
238 | #ifdef __KERNEL__ | 238 | #ifdef __KERNEL__ |
239 | 239 | ||
240 | #include <asm/clinkage.h> | 240 | #include <asm/clinkage.h> |
241 | #include <linux/err.h> | ||
241 | 242 | ||
242 | #define __syscall_return(type, res) \ | 243 | #define __syscall_return(type, res) \ |
243 | do { \ | 244 | do { \ |
244 | /* user-visible error numbers are in the range -1 - -124: \ | 245 | /* user-visible error numbers are in the range -1 - -MAX_ERRNO: \ |
245 | see <asm-v850/errno.h> */ \ | 246 | see <asm-v850/errno.h> */ \ |
246 | if (__builtin_expect ((unsigned long)(res) >= (unsigned long)(-125), 0)) { \ | 247 | if (__builtin_expect ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO), 0)) { \ |
247 | errno = -(res); \ | 248 | errno = -(res); \ |
248 | res = -1; \ | 249 | res = -1; \ |
249 | } \ | 250 | } \ |