Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian 12 kernel redroid-modules build error #793

Open
calvin2021y opened this issue Dec 2, 2024 · 1 comment
Open

debian 12 kernel redroid-modules build error #793

calvin2021y opened this issue Dec 2, 2024 · 1 comment

Comments

@calvin2021y
Copy link

Describe the bug

can not build https://github.com/remote-android/redroid-modules.git for debian12

make sure the required kernel modules present

DKMS make.log for redroid-ashmem-1 for kernel 6.1.119 (x86_64)
Mon Dec  2 02:39:23 PM HKT 2024
make -C /lib/modules/`uname -r`/build M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-6.1.119'
  CC [M]  /var/lib/dkms/redroid-ashmem/1/build/ashmem.o
  CC [M]  /var/lib/dkms/redroid-ashmem/1/build/deps.o
/var/lib/dkms/redroid-ashmem/1/build/ashmem.c: In function 'ashmem_init':
/var/lib/dkms/redroid-ashmem/1/build/ashmem.c:950:15: error: too few arguments to function 'register_shrinker'
  950 |         ret = register_shrinker(&ashmem_shrinker);
      |               ^~~~~~~~~~~~~~~~~
In file included from ./include/linux/list_lru.h:13,
                 from ./include/linux/fs.h:13,
                 from /var/lib/dkms/redroid-ashmem/1/build/ashmem.c:17:
./include/linux/shrinker.h:99:27: note: declared here
   99 | extern int __printf(2, 3) register_shrinker(struct shrinker *shrinker,
      |                           ^~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:255: /var/lib/dkms/redroid-ashmem/1/build/ashmem.o] Error 1
make[1]: *** [Makefile:2034: /var/lib/dkms/redroid-ashmem/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.119'
make: *** [Makefile:8: all] Error 2
@zhouziyang
Copy link
Member

redroid-modules repo is deprecated and try in-tree binderfs kernel feature.

BTW, check https://github.com/remote-android/redroid-doc/blob/master/deploy/debian.md to test on Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants