--- zzzz-none-000/linux-4.1.52/arch/arm/include/asm/bugs.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/arch/arm/include/asm/bugs.h 2022-03-02 11:37:12.000000000 +0000 @@ -10,6 +10,16 @@ #ifndef __ASM_BUGS_H #define __ASM_BUGS_H +#if defined(CONFIG_BCM_KF_SPECTRE_PATCH) && defined(CONFIG_BCM_SPECTRE_PATCH_ENABLE) +extern void check_writebuffer_bugs(void); +#ifdef CONFIG_MMU +extern void check_bugs(void); +extern void check_other_bugs(void); +#else +#define check_bugs() do { } while (0) +#define check_other_bugs() do { } while (0) +#endif +#else #ifdef CONFIG_MMU extern void check_writebuffer_bugs(void); @@ -17,5 +27,6 @@ #else #define check_bugs() do { } while (0) #endif +#endif /* CONFIG_BCM_KF_SPECTRE_PATCH && CONFIG_BCM_SPECTRE_PATCH_ENABLE*/ #endif