Skip to content

alibabalinux3 make 报错 #15

@Isochronism

Description

@Isochronism

[root@iZuf67e3acte4ax1uwgxhtZ redroid-modules]# sudo make
make -C ashmem
make[1]: Entering directory '/root/redroid-modules/ashmem'
make -C /lib/modules/uname -r/build M=$PWD
make[2]: Entering directory '/usr/src/kernels/5.10.134-15.al8.aarch64'
make[2]: Leaving directory '/usr/src/kernels/5.10.134-15.al8.aarch64'
make[1]: Leaving directory '/root/redroid-modules/ashmem'
make -C binder
make[1]: Entering directory '/root/redroid-modules/binder'
make -C /lib/modules/uname -r/build M=$PWD
make[2]: Entering directory '/usr/src/kernels/5.10.134-15.al8.aarch64'
CC [M] /root/redroid-modules/binder/binder.o
/root/redroid-modules/binder/binder.c: In function ‘binder_translate_binder’:
/root/redroid-modules/binder/binder.c:2438:42: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2438 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) {
| ~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:262:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
262 | int security_binder_transfer_binder(const struct cred *from,
| ~~~~~~~~~~~~~~~~~~~^~~~
/root/redroid-modules/binder/binder.c:2438:60: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2438 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) {
| ~~~~~~~~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:263:28: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
263 | const struct cred *to);
| ~~~~~~~~~~~~~~~~~~~^~
/root/redroid-modules/binder/binder.c: In function ‘binder_translate_handle’:
/root/redroid-modules/binder/binder.c:2484:42: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2484 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) {
| ~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:262:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
262 | int security_binder_transfer_binder(const struct cred *from,
| ~~~~~~~~~~~~~~~~~~~^~~~
/root/redroid-modules/binder/binder.c:2484:60: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2484 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) {
| ~~~~~~~~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:263:28: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
263 | const struct cred *to);
| ~~~~~~~~~~~~~~~~~~~^~
/root/redroid-modules/binder/binder.c: In function ‘binder_translate_fd’:
/root/redroid-modules/binder/binder.c:2572:42: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2572 | ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
| ~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:264:54: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
264 | int security_binder_transfer_file(const struct cred *from,
| ~~~~~~~~~~~~~~~~~~~^~~~
/root/redroid-modules/binder/binder.c:2572:60: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2572 | ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
| ~~~~~~~~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:265:26: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
265 | const struct cred *to, struct file *file);
| ~~~~~~~~~~~~~~~~~~~^~
/root/redroid-modules/binder/binder.c: In function ‘binder_transaction’:
/root/redroid-modules/binder/binder.c:2971:39: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2971 | if (security_binder_transaction(proc->tsk,
| ~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:260:52: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
260 | int security_binder_transaction(const struct cred *from,
| ~~~~~~~~~~~~~~~~~~~^~~~
/root/redroid-modules/binder/binder.c:2972:18: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2972 | target_proc->tsk) < 0) {
| ~~~~~~~~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:261:24: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
261 | const struct cred *to);
| ~~~~~~~~~~~~~~~~~~~^~
/root/redroid-modules/binder/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:
/root/redroid-modules/binder/binder.c:4909:44: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
4909 | ret = security_binder_set_context_mgr(proc->tsk);
| ~~~~^~~~~
| |
| struct task_struct *
In file included from /root/redroid-modules/binder/binder.c:63:
./include/linux/security.h:259:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
259 | int security_binder_set_context_mgr(const struct cred *mgr);
| ~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:286: /root/redroid-modules/binder/binder.o] Error 1
make[2]: *** [Makefile:1834: /root/redroid-modules/binder] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.10.134-15.al8.aarch64'
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/root/redroid-modules/binder'
make: *** [Makefile:8: binder] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions