--- zzzz-none-000/linux-4.1.52/tools/perf/util/include/dwarf-regs.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/tools/perf/util/include/dwarf-regs.h 2022-03-02 11:37:14.000000000 +0000 @@ -1,8 +1,12 @@ #ifndef _PERF_DWARF_REGS_H_ #define _PERF_DWARF_REGS_H_ -#ifdef HAVE_DWARF_SUPPORT +#if defined(CONFIG_BCM_KF_MIPS_4350) && (defined(CONFIG_BCM96838) || defined(CONFIG_BCM96848)) const char *get_arch_regstr(unsigned int n); #endif +#ifdef HAVE_DWARF_SUPPORT +const char *get_arch_regstr(unsigned int n); #endif +#endif +