--- zzzz-none-000/linux-4.1.52/include/linux/kallsyms.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/kallsyms.h 2022-03-02 11:37:13.000000000 +0000 @@ -109,7 +109,7 @@ /* This macro allows us to keep printk typechecking */ static __printf(1, 2) -void __check_printsym_format(const char *fmt, ...) +void __check_printsym_format(const char *fmt __maybe_unused, ...) { } @@ -122,7 +122,21 @@ static inline void print_ip_sym(unsigned long ip) { +#if defined(CONFIG_BCM_KF_EXTRA_DEBUG) +#if defined(CONFIG_ARM) + if (((ip & 0xF0000000) == 0xc0000000)) +#elif defined (CONFIG_MIPS) + if (((ip & 0xF0000000) == 0x80000000)) +#else + if ((ip & 0xfffffff000000000) == 0xffffffc000000000 || (ip & 0xfffffff000000000) == 0xffffffb000000000) +#endif printk("[<%p>] %pS\n", (void *) ip, (void *) ip); + else + printk("[<%p>] (suspected corrupt symbol)\n", (void *) ip); +#else + + printk("[<%p>] %pS\n", (void *) ip, (void *) ip); +#endif } #endif /*_LINUX_KALLSYMS_H*/