mirror of
https://github.com/choff/anbox-modules.git
synced 2026-07-02 19:30:11 +08:00
deps.c implements zap_page_range_single() as a runtime compat shim (resolved via kallsyms_lookup_name), but deps.h never declared its prototype, and binder_alloc.c did not include deps.h. Newer compilers (Clang, building with -std=gnu11 and later defaults) treat an implicit function declaration as a hard error rather than a warning, so the module fails to build: binder_alloc.c:1029:3: error: call to undeclared function 'zap_page_range_single'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Declare the prototype in deps.h and include it from binder_alloc.c. Verified the module builds and links cleanly (binder_linux.ko) against kernel 7.1.1 with the fix applied; previously failed with the error above. |
||
|---|---|---|
| .. | ||
| binder_alloc.c | ||
| binder_alloc.h | ||
| binder_internal.h | ||
| binder_trace.h | ||
| binder.c | ||
| binder.h | ||
| binderfs.c | ||
| compat_version.h | ||
| deps.c | ||
| deps.h | ||
| dkms.conf | ||
| Makefile | ||