Hi all,
    I'm doing a kernel module (my first) and there is a problem with
include
headers from kernel. The error message is:

[EMAIL PROTECTED]: ~/trab$ make clean
rm -f hello.o
[EMAIL PROTECTED]: ~/trab$ make
gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c hello.c
hello.c: In function `device_read':
hello.c:184: warning: int format, long int arg (arg 3)
hello.c:184: warning: int format, long int arg (arg 4)
hello.c:184: warning: int format, long int arg (arg 5)
hello.c:184: warning: int format, long int arg (arg 6)
hello.c:184: warning: int format, long int arg (arg 7)
hello.c:184: warning: int format, long int arg (arg 8)
hello.c:184: warning: int format, long int arg (arg 9)
hello.c:184: warning: int format, long int arg (arg 10)
hello.c:184: warning: int format, long int arg (arg 11)
hello.c:184: warning: int format, long int arg (arg 12)
hello.c:184: warning: int format, long int arg (arg 13)
hello.c:184: warning: int format, long int arg (arg 14)
echo insmod hello.o to turn it on
insmod hello.o to turn it on
echo rmmod hello to turn if off
rmmod hello to turn if off
echo

echo X and kernel programming do not mix.
X and kernel programming do not mix.
echo Do the insmod and rmmod from outside X.
Do the insmod and rmmod from outside X.
[EMAIL PROTECTED]: ~/trab$ su
Password:
gonzaga:/home/baptista/trab# insmod hello.o
hello.o: kernel-module version mismatch
        hello.o was compiled for kernel version 2.0.36
        while this kernel is version 2.0.34.
gonzaga:/home/baptista/trab#

    I have a slink system (in this machine)
    Thanks for any help,        Paulo Henrique

Reply via email to