]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/asm-m32r/unistd.h
Merge branch 'intelfb-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied...
[mv-sheeva.git] / include / asm-m32r / unistd.h
index cc31790d8077c5dbc07e9c434ecf10d4f6a79870..5c6a9ac6cf1aea11eefcca4969dae98057e6c724 100644 (file)
@@ -3,8 +3,6 @@
 
 /* $Id$ */
 
-#include <asm/syscall.h>       /* SYSCALL_* */
-
 /*
  * This file contains the system call numbers.
  */
 #ifdef __KERNEL__
 
 #define NR_syscalls 285
+#include <linux/err.h>
 
-/* user-visible error numbers are in the range -1 - -124: see
+/* user-visible error numbers are in the range -1 - -MAX_ERRNO: see
  * <asm-m32r/errno.h>
  */
 
+#include <asm/syscall.h>       /* SYSCALL_* */
+
 #define __syscall_return(type, res) \
 do { \
-       if ((unsigned long)(res) >= (unsigned long)(-(124 + 1))) { \
+       if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \
        /* Avoid using "res" which is declared to be in register r0; \
           errno might expand to a function call and clobber it.  */ \
                int __err = -(res); \