diff options
| author | Ingo Molnar <mingo@kernel.org> | 2014-04-14 10:44:42 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2014-04-14 10:44:42 -0400 |
| commit | 740c699a8d316c8bf8593f19e2ca47795e690622 (patch) | |
| tree | a78886955770a477945c5d84e06b2e7678733b54 /include/linux/err.h | |
| parent | e69af4657e7764d03ad555f0b583d9c4217bcefa (diff) | |
| parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) | |
Merge tag 'v3.15-rc1' into perf/urgent
Pick up the latest fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/err.h')
| -rw-r--r-- | include/linux/err.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/err.h b/include/linux/err.h index 15f92e072450..a729120644d5 100644 --- a/include/linux/err.h +++ b/include/linux/err.h | |||
| @@ -2,12 +2,13 @@ | |||
| 2 | #define _LINUX_ERR_H | 2 | #define _LINUX_ERR_H |
| 3 | 3 | ||
| 4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
| 5 | #include <linux/types.h> | ||
| 5 | 6 | ||
| 6 | #include <asm/errno.h> | 7 | #include <asm/errno.h> |
| 7 | 8 | ||
| 8 | /* | 9 | /* |
| 9 | * Kernel pointers have redundant information, so we can use a | 10 | * Kernel pointers have redundant information, so we can use a |
| 10 | * scheme where we can return either an error code or a dentry | 11 | * scheme where we can return either an error code or a normal |
| 11 | * pointer with the same return value. | 12 | * pointer with the same return value. |
| 12 | * | 13 | * |
| 13 | * This should be a per-architecture thing, to allow different | 14 | * This should be a per-architecture thing, to allow different |
| @@ -29,12 +30,12 @@ static inline long __must_check PTR_ERR(__force const void *ptr) | |||
| 29 | return (long) ptr; | 30 | return (long) ptr; |
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | static inline long __must_check IS_ERR(__force const void *ptr) | 33 | static inline bool __must_check IS_ERR(__force const void *ptr) |
| 33 | { | 34 | { |
| 34 | return IS_ERR_VALUE((unsigned long)ptr); | 35 | return IS_ERR_VALUE((unsigned long)ptr); |
| 35 | } | 36 | } |
| 36 | 37 | ||
| 37 | static inline long __must_check IS_ERR_OR_NULL(__force const void *ptr) | 38 | static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) |
| 38 | { | 39 | { |
| 39 | return !ptr || IS_ERR_VALUE((unsigned long)ptr); | 40 | return !ptr || IS_ERR_VALUE((unsigned long)ptr); |
| 40 | } | 41 | } |
