--- zzzz-none-000/linux-4.1.38/init/main.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/init/main.c 2020-11-25 10:06:48.000000000 +0000 @@ -93,6 +93,9 @@ extern void init_IRQ(void); extern void fork_init(void); extern void radix_tree_init(void); +#if defined(CONFIG_BCM_KF_LOG) +extern void bcmLog_init(void); +#endif #ifndef CONFIG_DEBUG_RODATA static inline void mark_rodata_ro(void) { } #endif @@ -465,7 +468,7 @@ { } -# if THREAD_SIZE >= PAGE_SIZE +#if THREAD_SIZE >= PAGE_SIZE void __init __weak thread_info_cache_init(void) { } @@ -673,7 +676,9 @@ } ftrace_init(); - +#if defined(CONFIG_BCM_KF_LOG) && defined(CONFIG_BCM_LOG) + bcmLog_init(); +#endif /* Do the rest non-__init'ed, we're now alive */ rest_init(); }