make的时候,提示的错误信息如下:
debian:/home/arm-drivers/mydev-drviver# make
/home/arm/3.4.1/bin/arm-linux-gcc -D__KERNEL__ -DMODULE -I/home/arm/linux-2.6.22.19/include/ -c -o s3c2440_mydev.o s3c2440_mydev.c
In file included from /home/arm/linux-2.6.22.19/include/linux/notifier.h:14,
from /home/arm/linux-2.6.22.19/include/linux/memory_hotplug.h:7,
from /home/arm/linux-2.6.22.19/include/linux/mmzone.h:466,
from /home/arm/linux-2.6.22.19/include/linux/gfp.h:4,
from /home/arm/linux-2.6.22.19/include/linux/slab.h:14,
from /home/arm/linux-2.6.22.19/include/linux/percpu.h:5,
from /home/arm/linux-2.6.22.19/include/asm-generic/local.h:4,
from /home/arm/linux-2.6.22.19/include/asm/local.h:1,
from /home/arm/linux-2.6.22.19/include/linux/module.h:19,
from s3c2440_mydev.h:7,
from s3c2440_mydev.c:1:
/home/arm/linux-2.6.22.19/include/linux/rwsem.h:24:65: asm/rwsem.h: No such file or directory
In file included from /home/arm/linux-2.6.22.19/include/linux/memory_hotplug.h:7,
from /home/arm/linux-2.6.22.19/include/linux/mmzone.h:466,
from /home/arm/linux-2.6.22.19/include/linux/gfp.h:4,
from /home/arm/linux-2.6.22.19/include/linux/slab.h:14,
from /home/arm/linux-2.6.22.19/include/linux/percpu.h:5,
from /home/arm/linux-2.6.22.19/include/asm-generic/local.h:4,
from /home/arm/linux-2.6.22.19/include/asm/local.h:1,
from /home/arm/linux-2.6.22.19/include/linux/module.h:19,
from s3c2440_mydev.h:7,
from s3c2440_mydev.c:1:
/home/arm/linux-2.6.22.19/include/linux/notifier.h:62: error: field `rwsem' has incomplete type
In file included from /home/arm/linux-2.6.22.19/include/linux/sched.h:51,
from /home/arm/linux-2.6.22.19/include/asm/uaccess.h:14,
from s3c2440_mydev.h:13,
from s3c2440_mydev.c:1:
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:33:3: #error You lose.
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
/home/arm/linux-2.6.22.19/include/linux/jiffies.h:225:31: division by zero in #if
In file included from /home/arm/linux-2.6.22.19/include/asm/uaccess.h:14,
from s3c2440_mydev.h:13,
from s3c2440_mydev.c:1:
/home/arm/linux-2.6.22.19/include/linux/sched.h:339: error: field `mmap_sem' has incomplete type
In file included from mac_headers.h:66,
from s3c2440_mydev.h:33,
from s3c2440_mydev.c:1:
2440_headers/2440lib.h:19:1: warning: "min" redefined
In file included from /home/arm/linux-2.6.22.19/include/linux/spinlock.h:53,
from /home/arm/linux-2.6.22.19/include/linux/module.h:9,
from s3c2440_mydev.h:7,
from s3c2440_mydev.c:1:
/home/arm/linux-2.6.22.19/include/linux/kernel.h:285:1: warning: this is the location of the previous definition
In file included from mac_headers.h:66,
from s3c2440_mydev.h:33,
from s3c2440_mydev.c:1:
s3c2440_mydev.c: At top level:
s3c2440_mydev.c:225: error: storage size of `s3c2440_mydev_fops' isn't known
make: *** [s3c2440_mydev.o] Error 1