remote-android / redroid-modules

redroid kernel modules (binderfs, ashmem etc.)
GNU General Public License v2.0
84 stars 58 forks source link

error: too few arguments to function ‘register_shrinker’ #14

Open xxlovex opened 11 months ago

xxlovex commented 11 months ago

I failed to add binder by compiling the kernel, so I tried to install binder and ashmem by DKMS, but this error was reported when I executed dkms install redroid-ashmem/1. /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: [scripts/Makefile.build:250: /var/lib/dkms/redroid-ashmem/1/build/deps.o] Error 126 make[2]: Deleting file '/var/lib/dkms/redroid-ashmem/1/build/deps.o' make[2]: Waiting for unfinished jobs.... /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 ./arch/arm64/include/asm/elf.h:141, from ./include/linux/elf.h:6, from ./include/linux/module.h:19, from /var/lib/dkms/redroid-ashmem/1/build/ashmem.c:13: ./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:250: /var/lib/dkms/redroid-ashmem/1/build/ashmem.o] Error 1 make[1]: [Makefile:2012: /var/lib/dkms/redroid-ashmem/1/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.42-ophub' make: *** [Makefile:8: all] Error 2

How can I fix this error? Look forward to your recovery, thank you

zhouziyang commented 11 months ago

Host OS? Try use customized kernel (or 3rd party kernels); this out of tree module only act as last resort.