- 代碼: 選擇全部
Debian99:~/scull# make
make -C /lib/modules/2.6.24-1-686/build M=/root/scull LDDINC=/root/scull/../include modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-1-686'
CC [M] /root/scull/access.o
/root/scull/access.c: In function ‘scull_u_open’:
/root/scull/access.c:106: error: dereferencing pointer to incomplete type
/root/scull/access.c:107: error: dereferencing pointer to incomplete type
/root/scull/access.c:114: error: dereferencing pointer to incomplete type
/root/scull/access.c: In function ‘scull_w_available’:
/root/scull/access.c:165: error: dereferencing pointer to incomplete type
/root/scull/access.c:166: error: dereferencing pointer to incomplete type
/root/scull/access.c: In function ‘scull_w_open’:
/root/scull/access.c:179: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/root/scull/access.c:179: error: (Each undeclared identifier is reported only once
/root/scull/access.c:179: error: for each function it appears in.)
/root/scull/access.c:179: error: implicit declaration of function ‘signal_pending’
/root/scull/access.c:179: error: implicit declaration of function ‘schedule’
/root/scull/access.c:184: error: dereferencing pointer to incomplete type
/root/scull/access.c: In function ‘scull_w_release’:
/root/scull/access.c:205: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/root/scull/access.c: In function ‘scull_c_open’:
/root/scull/access.c:277: error: dereferencing pointer to incomplete type
/root/scull/access.c:281: error: dereferencing pointer to incomplete type
make[2]: *** [/root/scull/access.o] Error 1
make[1]: *** [_module_/root/scull] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-1-686'
make: *** [modules] Error 2
Debian99:~/scull#
P.S.已經想破頭的我