Commit Graph

8 Commits

Author SHA1 Message Date
PEKKA Chang
fb109b5eec binder: fix missing prototype for zap_page_range_single
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.
2026-06-21 15:20:27 +08:00
Elmer Miroslav Mosher Golovin
f808a11c33 fix for RHEL 10.1 2026-03-30 19:26:13 +02:00
llyyr
355b6d8bdd Fix for kernel 6.13+ 2025-08-01 07:22:20 +02:00
ssfdust
44e5ba79f5 Fixes for kernel 6.8 2024-02-10 08:49:38 +01:00
ssfdust
13a93a4f7c Fix for kernel 6.7+
* Use shrinker pointer instead of shrink struct for 6.7+, due to the `shrinker_alloc` function always return the pointer.
* Most of the codes are stolen from drivers/android/binder_alloc.c
2024-01-13 21:57:08 +01:00
TheSola10
abead1debf Fixes for kernel 6.3+ 2023-06-18 16:49:05 +02:00
zhanghua000
cd66055f6d Fix build on 6.0 kernel 2022-10-28 15:22:16 +02:00
Christian Hoff
0338a34979 Update binder to the latest version
Over the last years, many fixes and changes have been applied to
Binder in the Linux kernel, but these fixes were never backported
to anbox-modules. The meant that the version of Binder in anbox-modules
was very outdated.

With this commit, Binder has been update to the latest state from
the Linux kernel. This should also fix the compile on kernel 5.12
and later.
2021-09-26 18:54:51 +02:00