summaryrefslogtreecommitdiff
path: root/include/linux/err.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-10-04 09:59:13 +0200
committerIngo Molnar <mingo@kernel.org>2013-10-04 09:59:13 +0200
commitfafd883f671dfc1c2f62009179920f27abc784a1 (patch)
tree0eccb0baf343cad79a54e352598921db9ca17620 /include/linux/err.h
parent92519bbc8af612975410def52bd462ca9af85cdb (diff)
parentd8b11a0cbd1c66ce283eb9dabe0498dfa6483f32 (diff)
Merge branch 'perf/urgent' into perf/core
Pick up the latest fixes before applying new patches. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/err.h')
-rw-r--r--include/linux/err.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/err.h b/include/linux/err.h
index 221fcfb676c4..15f92e072450 100644
--- a/include/linux/err.h
+++ b/include/linux/err.h
@@ -52,7 +52,7 @@ static inline void * __must_check ERR_CAST(__force const void *ptr)
return (void *) ptr;
}
-static inline int __must_check PTR_RET(__force const void *ptr)
+static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr)
{
if (IS_ERR(ptr))
return PTR_ERR(ptr);
@@ -60,6 +60,9 @@ static inline int __must_check PTR_RET(__force const void *ptr)
return 0;
}
+/* Deprecated */
+#define PTR_RET(p) PTR_ERR_OR_ZERO(p)
+
#endif
#endif /* _LINUX_ERR_H */