--- zzzz-none-000/linux-4.1.38/include/linux/moduleloader.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/moduleloader.h 2020-11-25 10:06:48.000000000 +0000 @@ -21,9 +21,13 @@ /* Additional bytes needed by arch in front of individual sections */ unsigned int arch_mod_section_prepend(struct module *mod, unsigned int section); +#if !defined(CONFIG_AVM_ENHANCED) /* Allocator used for allocating struct module, core sections and init sections. Returns NULL on failure. */ void *module_alloc(unsigned long size); +#else +#include +#endif/*--- #if !defined(CONFIG_AVM_ENHANCED) || !defined(CONFIG_MIPS) ---*/ /* Free memory returned from module_alloc. */ void module_memfree(void *module_region);