You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: