Please!!!! Anyone can help me ?!
I have had much problems to compile the Linux Device Driver samples, such as
scull.
Some bugs I already fix, but this one is take me a headache!
(Sorry if my english is not very well because I am a brazilian and I speak Portuguese )
The problem is :
[root@nativos scull]# make
cc -D__KERNEL__ -DMODULE -Wall -O2 -I/lib/modules/2.4.18-2cl/build/include -c -o pipe.o pipe.c
pipe.c: In function `scull_p_read':
pipe.c:111: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
pipe.c:112: structure has no member named `signal'
pipe.c:112: wrong type argument to bit-complement
pipe.c:118: warning: comparison of distinct pointer types lacks a cast
pipe.c:120: warning: comparison of distinct pointer types lacks a cast
pipe.c:127: warning: passing arg 1 of `__wake_up' from incompatible pointer type
pipe.c: In function `scull_p_write':
pipe.c:144: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
pipe.c:145: structure has no member named `signal'
pipe.c:145: wrong type argument to bit-complement
pipe.c:152: warning: comparison of distinct pointer types lacks a cast
pipe.c:157: warning: comparison of distinct pointer types lacks a cast
pipe.c:166: warning: passing arg 1 of `__wake_up' from incompatible pointer type
pipe.c:168: warning: passing arg 1 of `kill_fasync' from incompatible pointer type
pipe.c:168: too few arguments to function `kill_fasync'
pipe.c: In function `scull_p_poll':
pipe.c:210: warning: passing arg 1 of `poll_wait' from incompatible pointer type
pipe.c:210: warning: passing arg 2 of `poll_wait' from incompatible pointer type
pipe.c:210: too few arguments to function `poll_wait'
pipe.c:211: warning: passing arg 1 of `poll_wait' from incompatible pointer type
pipe.c:211: warning: passing arg 2 of `poll_wait' from incompatible pointer type
pipe.c:211: too few arguments to function `poll_wait'
pipe.c: In function `scull_p_fasync':
pipe.c:225: warning: passing arg 1 of `fasync_helper' makes integer from pointer without a cast
pipe.c: At top level:
pipe.c:275: warning: initialization from incompatible pointer type
pipe.c:276: warning: initialization from incompatible pointer type
pipe.c:277: warning: initialization from incompatible pointer type
pipe.c:279: warning: initialization from incompatible pointer type
pipe.c:280: warning: initialization from incompatible pointer type
pipe.c:282: warning: initialization from incompatible pointer type
pipe.c:285: warning: initialization from incompatible pointer type
make: *** [pipe.o] Error 1
Anyone have a idea what is the problem?? If not, tell me about another device driver code I can compile with success. Or tell me a sugestion.
The scull driver have a main.c (I already compiled), a pipe and access.c, some headers and some script to load the module..
My Kernel version is 2.4.18-2cl, and the scull version is 2.1
This samples come from Linux Device Driver Book (Alessandro Rubini) 2nd.
Please, I am very anxious and I need to fix this bugs fastly....
Thank you