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
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 2How can I fix this error? Look forward to your recovery, thank you