]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Remove duplicate typedef config_term_func_t definition
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 Feb 2016 22:51:13 +0000 (19:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Feb 2016 14:48:44 +0000 (11:48 -0300)
commit7fc192217ec6481bb3a9b29c5c983d39fe57845a
tree32f85c8dc8de517ba4fd7dbba063ca026a708a86
parentfcbf969a580fdeedad0083948184a44bcce29499
perf tools: Remove duplicate typedef config_term_func_t definition

Older compilers don't like this, for instance, on RHEL6.7:

    CC       /tmp/build/perf/util/parse-events.o
  util/parse-events.c:844: error: redefinition of typedef ‘config_term_func_t’
  util/parse-events.c:353: note: previous declaration of ‘config_term_func_t’ was here

So remove the second definition, that should've been just moved in 49ccdd0e32cb
("perf tools: Enable config and setting names for legacy cache events"), not copied.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: 49ccdd0e32cb ("perf tools: Enable config and setting names for legacy cache events")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c