X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Ferr.h;h=17c55df13615a9bda172e80c6f4711c11f3183e8;hb=82ba8664b914f9985d674bd8773799cd734d9835;hp=92cab64fdd837fb1f7c357404586e24ce46f3029;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/include/linux/err.h b/include/linux/err.h index 92cab64fd..17c55df13 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -1,6 +1,8 @@ #ifndef _LINUX_ERR_H #define _LINUX_ERR_H +#include + #include /* @@ -23,7 +25,7 @@ static inline long PTR_ERR(const void *ptr) static inline long IS_ERR(const void *ptr) { - return (unsigned long)ptr > (unsigned long)-1000L; + return unlikely((unsigned long)ptr > (unsigned long)-1000L); } #endif /* _LINUX_ERR_H */