diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2018-11-27 09:56:55 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-12-17 14:54:34 -0300 |
commit | 92151b0a230ce2792e4b2b1f43ca3ea80a83292e (patch) | |
tree | c0aebae11756350fe57a719e38c699e0c21dc482 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 741dad88dde296999da30332157ca47f0543747d (diff) |
tools include: Adopt ERR_CAST() from the kernel err.h header
Add ERR_CAST(), so that tools can use it, just like the kernel.
This addresses coccinelle checks that are being performed to tools/ in
addition to kernel sources, so lets add this to cover that and to get
tools code closer to kernel coding standards.
This originally was introduced in the kernel headers in this cset:
d1bc8e954452 ("Add an ERR_CAST() function to complement ERR_PTR and co.")
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: David Ahern <[email protected]>
Cc: David Howells <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Julia Lawall <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Cc: Wen Yang <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions