X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fasm-m32r%2Funistd.h;h=5c6a9ac6cf1aea11eefcca4969dae98057e6c724;hb=db1a19b38f3a85f475b4ad716c71be133d8ca48e;hp=cc31790d8077c5dbc07e9c434ecf10d4f6a79870;hpb=be883da7594b0a2a02074e683673ae0e522566a4;p=mv-sheeva.git diff --git a/include/asm-m32r/unistd.h b/include/asm-m32r/unistd.h index cc31790d807..5c6a9ac6cf1 100644 --- a/include/asm-m32r/unistd.h +++ b/include/asm-m32r/unistd.h @@ -3,8 +3,6 @@ /* $Id$ */ -#include /* SYSCALL_* */ - /* * This file contains the system call numbers. */ @@ -298,14 +296,17 @@ #ifdef __KERNEL__ #define NR_syscalls 285 +#include -/* user-visible error numbers are in the range -1 - -124: see +/* user-visible error numbers are in the range -1 - -MAX_ERRNO: see * */ +#include /* 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); \