]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf dwarf: Guard !x86_64 definitions under #ifdef else clause
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 8 Apr 2016 15:04:29 +0000 (12:04 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 8 Apr 2016 15:04:29 +0000 (12:04 -0300)
commitf9383452a26fc47f62c4ddcfa20ccebb7a09c2d8
treeffe146edf1ed91483318c7e8f1884b5710a5a52d
parentbfc279f3d233150ff260e9e93012e14f86810648
perf dwarf: Guard !x86_64 definitions under #ifdef else clause

To fix the build on Fedora Rawhide (gcc 6.0.0 20160311 (Red Hat 6.0.0-0.17):

    CC       /tmp/build/perf/arch/x86/util/dwarf-regs.o
  arch/x86/util/dwarf-regs.c:66:36: error: 'x86_32_regoffset_table' defined but not used [-Werror=unused-const-variable=]
   static const struct pt_regs_offset x86_32_regoffset_table[] = {
                                      ^~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-fghuksc1u8ln82bof4lwcj0o@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/dwarf-regs.c