LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-19-2005, 09:00 AM   #1
manuzinhac
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Unhappy Scull Device Driver (problems to compile)


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Device Driver problems AngryLlama Programming 2 11-19-2005 03:39 PM
Linux Device Drivers, Third Edition --- scull module??? Igor007 Programming 2 09-09-2005 05:05 PM
Trouble running make to compile example scull device driver taillefer Programming 3 03-23-2004 12:53 AM
onboard device problems after kernel compile gwroy20 Linux - Hardware 7 09-06-2003 06:47 PM
Compile dmfe.c for installing net device driver on Book PC gogo Linux - Software 2 07-24-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration