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

Compile error due to ktime.h #66

Open
shadowwalkersteam opened this issue Oct 2, 2022 · 0 comments
Open

Compile error due to ktime.h #66

shadowwalkersteam opened this issue Oct 2, 2022 · 0 comments

Comments

@shadowwalkersteam
Copy link

shadowwalkersteam commented Oct 2, 2022

Hi,
I'm getting error while compiling and its related to ktime library in linux. How can I resolve this?

==================

DKMS make.log for applespi-0.1 for kernel 4.9.0-279-antix.1-amd64-smp (x86_64)
Fri 30 Sep 2022 07:48:22 AM EDT
make -C /lib/modules/4.9.0-279-antix.1-amd64-smp/build M=/var/lib/dkms/applespi/0.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-279-antix.1-amd64-smp'
CC [M] /var/lib/dkms/applespi/0.1/build/applespi.o
CC [M] /var/lib/dkms/applespi/0.1/build/apple-ibridge.o
CC [M] /var/lib/dkms/applespi/0.1/build/apple-ib-tb.o
CC [M] /var/lib/dkms/applespi/0.1/build/apple-ib-als.o
/var/lib/dkms/applespi/0.1/build/applespi.c: In function ‘applespi_msg_complete’:
/var/lib/dkms/applespi/0.1/build/applespi.c:934:30: error: incompatible types when assigning to type ‘ktime_t’ {aka ‘union ktime’} from type ‘int’
934 | applespi->cmd_msg_queued = 0;
| ^
/var/lib/dkms/applespi/0.1/build/applespi.c: In function ‘applespi_send_cmd_msg’:
/var/lib/dkms/applespi/0.1/build/applespi.c:978:6: error: used union type value where scalar is required
978 | if (applespi->cmd_msg_queued) {
| ^~~~~~~~
/var/lib/dkms/applespi/0.1/build/applespi.c:985:30: error: incompatible types when assigning to type ‘ktime_t’ {aka ‘union ktime’} from type ‘int’
985 | applespi->cmd_msg_queued = 0;
| ^
/var/lib/dkms/applespi/0.1/build/applespi.c: In function ‘applespi_resume’:
/var/lib/dkms/applespi/0.1/build/applespi.c:2186:29: error: incompatible types when assigning to type ‘ktime_t’ {aka ‘union ktime’} from type ‘int’
2186 | applespi->cmd_msg_queued = 0;
| ^
make[2]: *** [scripts/Makefile.build:314: /var/lib/dkms/applespi/0.1/build/applespi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1557: module/var/lib/dkms/applespi/0.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-279-antix.1-amd64-smp'
make: *** [Makefile:16: all] Error 2

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

1 participant