--- zzzz-none-000/linux-4.4.60/include/linux/moduleloader.h 2017-04-08 07:53:53.000000000 +0000 +++ dragonfly-4020-701/linux-4.4.60/include/linux/moduleloader.h 2018-11-08 13:36:17.000000000 +0000 @@ -21,9 +21,16 @@ /* 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 +#if defined(CONFIG_MIPS) +#include +#endif +#endif/*--- #if !defined(CONFIG_AVM_ENHANCED) || !defined(CONFIG_MIPS) ---*/ /* Free memory returned from module_alloc. */ void module_memfree(void *module_region);