OSDN Git Service

perf config: Fix build with older toolchain.
authorVinson Lee <vlee@freedesktop.org>
Mon, 4 Apr 2016 22:07:39 +0000 (22:07 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Apr 2016 13:44:28 +0000 (10:44 -0300)
commitd8e28654f28de74951ab1b7e59d2bebb442972aa
tree4649a7a973c42e9a29da94a32e439f270e089fb2
parentdad38ca64a252144b4ccdfe9730a3fe2b7c61957
perf config: Fix build with older toolchain.

Fix build error on Ubuntu 12.04.5 with GCC 4.6.3.

    CC       util/config.o
  util/config.c: In function ‘perf_buildid_config’:
  util/config.c:384:15: error: declaration of ‘dirname’ shadows a global declaration [-Werror=shadow]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Taeung Song <treeze.taeung@gmail.com>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: 9cb5987c8227 ("perf config: Rework buildid_dir_command_config to perf_buildid_config")
Link: http://lkml.kernel.org/r/1459807659-9020-1-git-send-email-vlee@freedesktop.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/config.c