diff options
author | Jiri Olsa <jolsa@kernel.org> | 2015-09-07 11:38:03 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-09-15 15:48:32 +0300 |
commit | 01ca9fd41d6f2ad796a6b109b5253e06b6ae6dc7 (patch) | |
tree | 59da19c7f1b5d716a0442229e40af73844b09b89 /tools/include/linux/hash.h | |
parent | 9bae1e8c3fe5359ce17309b894f54667fd563e98 (diff) | |
download | linux-01ca9fd41d6f2ad796a6b109b5253e06b6ae6dc7.tar.xz |
tools: Add err.h with ERR_PTR PTR_ERR interface
Adding part of the kernel's <linux/err.h> interface:
inline void * __must_check ERR_PTR(long error);
inline long __must_check PTR_ERR(__force const void *ptr);
inline bool __must_check IS_ERR(__force const void *ptr);
It will be used to propagate error through pointers in following
patches.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Reviewed-by: Raphael Beamonte <raphael.beamonte@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1441615087-13886-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include/linux/hash.h')
0 files changed, 0 insertions, 0 deletions