perf: arm64: libunwind patch

From: ferar achkar
Date: Tue Mar 17 2020 - 18:29:13 EST


This is a multi-part message in MIME format. hi,
please find attached a compile error fix.
regards,

ferar

------------------

ferar@barbarian:~/renegade_rk3328/perf_core$ make -j4 ARCH=arm64 ....

....

Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm64/include/uapi/asm/kvm.h'
diff -u tools/arch/arm64/include/uapi/asm/kvm.h arch/arm64/include/uapi/asm/kvm.h
Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/mman-common.h' differs from latest version at 'include/uapi/asm-generic/mman-common.h'
diff -u tools/include/uapi/asm-generic/mman-common.h include/uapi/asm-generic/mman-common.h

Auto-detecting system features:
... dwarf: [ on ]
... dwarf_getlocations: [ on ]
... glibc: [ on ]
...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ gtk2: [ OFF ]
... libaudit: [ on ]
... libbfd: [ on ]
... libcap: [ on ]
... libelf: [ on ]
...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ libnuma: [ OFF ]
...ÂÂÂÂÂÂÂ numa_num_possible_cpus: [ OFF ]
...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ libperl: [ OFF ]
...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ libpython: [ OFF ]
... libcrypto: [ on ]
... libunwind: [ on ]
... libdw-dwarf-unwind: [ on ]
... zlib: [ on ]
... lzma: [ on ]
...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ get_cpuid: [ OFF ]
... bpf: [ on ]
... libaio: [ on ]
...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ libzstd: [ OFF ]
... disassembler-four-args: [ on ]

Makefile.config:497: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev

....

 CC util/dwarf-regs.o
 CC util/unwind-libunwind-local.o
 CC util/unwind-libunwind.o
 CC util/libunwind/arm64.o
util/libunwind/arm64.c:20:40: error: no previous prototype for âlibunwind__arm64_reg_idâ [-Werror=missing-prototypes]
Â#define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__arm64_reg_id(regnum)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^
util/libunwind/../../arch/arm64/util/unwind-libunwind.c:11:5: note: in expansion of macro âLIBUNWIND__ARCH_REG_IDâ
Âint LIBUNWIND__ARCH_REG_ID(int regnum)
ÂÂÂÂ ^~~~~~~~~~~~~~~~~~~~~~
 CC util/zlib.o
 CC util/lzma.o
util/libunwind/arm64.c:20:40: error: redundant redeclaration of âlibunwind__arm64_reg_idâ [-Werror=redundant-decls]
Â#define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__arm64_reg_id(regnum)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^
/home/ferar/renegade_rk3328/linux-5.4.0-rc1/tools/perf/util/unwind.h:49:5: note: in expansion of macro âLIBUNWIND__ARCH_REG_IDâ
Âint LIBUNWIND__ARCH_REG_ID(int regnum);
ÂÂÂÂ ^~~~~~~~~~~~~~~~~~~~~~
util/libunwind/arm64.c:20:40: note: previous definition of âlibunwind__arm64_reg_idâ was here
Â#define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__arm64_reg_id(regnum)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^
util/libunwind/../../arch/arm64/util/unwind-libunwind.c:11:5: note: in expansion of macro âLIBUNWIND__ARCH_REG_IDâ
Âint LIBUNWIND__ARCH_REG_ID(int regnum)
ÂÂÂÂ ^~~~~~~~~~~~~~~~~~~~~~
 CC util/cap.o
 CC util/demangle-java.o
 CC util/demangle-rust.o
....

----------------------------------------------------------------------