diff options
author | Jiri Olsa <[email protected]> | 2015-09-29 16:53:12 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-09-30 18:34:22 -0300 |
commit | 45633a169571e81835ec53fe0c089dd20f3195f1 (patch) | |
tree | 8079ac90dc0454d0d08a0d10398f85a5f5534a8c /tools/perf/scripts/python/stackcollapse.py | |
parent | 9c17dbc6eb73bdd8a6aaea1baefd37ff78d86148 (diff) |
tools: Fix shadowed declaration in err.h
The error variable breaks build on CentOS 6.7, due to collision with
global error symbol:
CC util/evlist.o
cc1: warnings being treated as errors
In file included from util/evlist.c:28:
tools/include/linux/err.h: In function ‘ERR_PTR’:
tools/include/linux/err.h:34: error: declaration of ‘error’ shadows a global declaration
util/util.h:135: error: shadowed declaration is here
Using 'error_' name instead to fix it.
Signed-off-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Reported-by: Vinson Lee <[email protected]>
[ Use 'error_' instead of 'err' to, visually, not diverge too much from include/linux/err.h ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions