mokee/android mkp拉取的源码无法编译

编译charlotte失败
. build/envsetup.sh && lunch mk_charlotte-userdebug && mka bacon

编译环境:MacOS 10.15.6
编译日志:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:236:64: error: expected expression before ‘)’ token
return oases_relocate_insn(insn, FUNC_POST_PLACE_HOLDER_OFFSET);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c: In function ‘func_pre_post_setup_trampoline’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:296:58: error: expected expression before ‘)’ token
*((u32 *)(trampoline + FUNC_PRE_POST_PLACE_HOLDER_OFFSET)) = (u32) INSN_NOOP;
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:297:59: error: expected expression before ‘)’ token
*((void * )(trampoline + FUNC_PRE_POST_ORIGIN_ADDR_OFFSET)) = insn->address + 4;
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:298:68: error: expected expression before ‘)’ token
return oases_relocate_insn(insn, FUNC_PRE_POST_PLACE_HOLDER_OFFSET);
^
In file included from /Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:20:0:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c: At top level:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:38:19: warning: ‘oases_insn_patch_nosync’ declared ‘static’ but never defined [-Wunused-function]
static inline int oases_insn_patch_nosync(void
addr, u32 insn);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c: In function ‘func_pre_setup_trampoline’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:198:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c: In function ‘func_post_setup_trampoline’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:237:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c: In function ‘func_pre_post_setup_trampoline’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_func.c:299:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[4]: *** [drivers/huawei_platform/oases/hook_func.o] Error 1
make[4]: *** Waiting for unfinished jobs…
In file included from /Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:21:0:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h: In function ‘aarch64_insn_disable_pxn_hkip’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:73:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
oases_debug("%s, res=%d, %d, %d, %d\n", FUNCTION , res.a0, res.a1, res.a2, res.a3);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:73:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:73:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘long unsigned int’ [-Wformat=]
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:73:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘long unsigned int’ [-Wformat=]
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h: In function ‘get_oases_hkip_token’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:83:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
oases_debug("%s, res.a0=%d,\n", FUNCTION , res.a0);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c: In function ‘subfunc_pre_setup_trampoline’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:325:57: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_PRE_FILTER_ADDR_OFFSET)) = (void *)(insn->handler);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:327:57: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_PRE_ORIGIN_ADDR_OFFSET)) = (void *)(insn->origin_to);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:329:57: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_PRE_RETURN_ADDR_OFFSET)) = (void *)(insn->address + 4);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:331:60: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_PRE_PATCH_INFO_CTX_OFFSET)) = (void *)(kp_owner(patch));
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:332:59: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_PRE_ATTACK_LOGGER_OFFSET)) = (void *)(oases_attack_logger);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c: In function ‘subfunc_post_setup_trampoline’:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:368:58: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_POST_FILTER_ADDR_OFFSET)) = (void *)(insn->handler);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:370:58: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_POST_ORIGIN_ADDR_OFFSET)) = (void *)(kp->sub);
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:372:61: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_POST_PATCH_INFO_CTX_OFFSET)) = (void *)(kp_owner(patch));
^
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:373:60: error: expected expression before ‘)’ token
*((void **)(trampoline + SUBFUNC_POST_ATTACK_LOGGER_OFFSET)) = (void )(oases_attack_logger);
^
In file included from /Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c:21:0:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/hook_subfunc.c: At top level:
/Volumes/mokee/mokee/kernel/huawei/kirin970/drivers/huawei_platform/oases/util.h:38:19: warning: ‘oases_insn_patch_nosync’ declared ‘static’ but never defined [-Wunused-function]
static inline int oases_insn_patch_nosync(void
addr, u32 insn);
^
make[4]: *** [drivers/huawei_platform/oases/hook_subfunc.o] Error 1
make[3]: *** [drivers/huawei_platform/oases] Error 2
make[2]: *** [drivers/huawei_platform] Error 2
make[2]: *** Waiting for unfinished jobs…
LD drivers/hisi/built-in.o
make[1]: *** [drivers] Error 2
make: *** [sub-make] Error 2

请大神帮忙看一下,谢谢