|
发表于 2005-1-18 13:41:05
|
显示全部楼层
# make
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PAGE_RANGE_5 -I. -I/lib/modules/2.6.8-1-686/build/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:24:31: linux/modversions.h: No such file or directory
In file included from /lib/modules/2.6.8-1-686/build/include/linux/list.h:7,
from /lib/modules/2.6.8-1-686/build/include/linux/wait.h:14,
from /lib/modules/2.6.8-1-686/build/include/asm/semaphore.h:41, from /lib/modules/2.6.8-1-686/build/include/linux/sched.h:18,
from /lib/modules/2.6.8-1-686/build/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.6.8-1-686/build/include/linux/prefetch.h: In function `prefetch_range':
/lib/modules/2.6.8-1-686/build/include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
nv-linux.h:51:4: #error This driver does not support 2.6.x or newer kernels!
nv-linux.h:69:75: linux/tqueue.h: No such file or directory
nv-linux.h:78:75: linux/wrapper.h: No such file or directory
In file included from /lib/modules/2.6.8-1-686/build/include/linux/irq.h:20,
from /lib/modules/2.6.8-1-686/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.8-1-686/build/include/linux/interrupt.h:12,
from nv-linux.h:79,
from nv.c:14:
/lib/modules/2.6.8-1-686/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.8-1-686/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.8-1-686/build/include/linux/interrupt.h:12,
from nv-linux.h:79,
from nv.c:14:
/lib/modules/2.6.8-1-686/build/include/linux/irq.h: At top level:
/lib/modules/2.6.8-1-686/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.8-1-686/build/include/linux/irq.h:72,
from /lib/modules/2.6.8-1-686/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.8-1-686/build/include/linux/interrupt.h:12,
from nv-linux.h:79,
from nv.c:14:
/lib/modules/2.6.8-1-686/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.8-1-686/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
In file included from nv.c:14:
nv-linux.h: In function `NV_IRQL_IS_RAISED':
nv-linux.h:255: warning: implicit declaration of function `__save_flags'
nv.c: At top level:
nv.c:46: error: parse error before "nv_dev_handle"
nv.c:46: warning: type defaults to `int' in declaration of `nv_dev_handle'
nv.c:46: warning: data definition has no type or storage class
nv.c:47: error: parse error before "nv_ctl_handle"
nv.c:47: warning: type defaults to `int' in declaration of `nv_ctl_handle'
nv.c:47: warning: data definition has no type or storage class
nv.c: In function `nvos_malloc_pages':
nv.c:373: warning: implicit declaration of function `mem_map_reserve'
nv.c:386: warning: implicit declaration of function `mem_map_unreserve'
nv.c: In function `nvos_create_alloc':
nv.c:439: warning: use of cast expressions as lvalues is deprecated
nv.c:449: warning: use of cast expressions as lvalues is deprecated
nv.c: In function `init_module':
nv.c:746: warning: implicit declaration of function `devfs_register_chrdev'
nv.c:757: error: `devfs_handle_t' undeclared (first use in this function)
nv.c:757: error: (Each undeclared identifier is reported only once
nv.c:757: error: for each function it appears in.)
nv.c:762: warning: implicit declaration of function `devfs_register'
nv.c:763: error: `DEVFS_FL_DEFAULT' undeclared (first use in this function)
nv.c:782: error: invalid use of undefined type `struct tq_struct'
nv.c:783: error: dereferencing pointer to incomplete type
nv.c:784: error: dereferencing pointer to incomplete type
nv.c:785: error: dereferencing pointer to incomplete type
nv.c:826: warning: implicit declaration of function `devfs_unregister_chrdev'
nv.c: In function `cleanup_module':
nv.c:889: warning: implicit declaration of function `devfs_unregister'
nv.c: In function `nv_kern_vma_open':
nv.c:922: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:555)
nv.c: In function `nv_kern_vma_release':
nv.c:956: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:567)
nv.c: At top level:
nv.c:1047: warning: initialization from incompatible pointer type
nv.c: In function `nv_kern_open':
nv.c:1071: warning: use of cast expressions as lvalues is deprecated
nv.c:1091: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:555)
nv.c:1124: warning: passing arg 2 of `request_irq' from incompatible pointer type
nv.c:1160: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:567)
nv.c: In function `nv_kern_close':
nv.c:1249: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:567)
nv.c: In function `nv_kern_mmap':
nv.c:1416: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:555)
nv.c: In function `nv_kern_ioctl':
nv.c:1525: error: structure has no member named `uc'
nv.c: In function `nv_kern_isr':
nv.c:1668: warning: implicit declaration of function `queue_task'
nv.c:1668: error: `tq_immediate' undeclared (first use in this function)
nv.c:1669: warning: implicit declaration of function `mark_bh'
nv.c:1669: error: `IMMEDIATE_BH' undeclared (first use in this function)
nv.c: In function `nv_kern_ctl_open':
nv.c:1763: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:555)
nv.c: In function `nv_kern_ctl_close':
nv.c:1828: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-1-686/build/include/linux/module.h:567)
nv.c: In function `nv_kern_read_agpinfo':
nv.c:1963: error: structure has no member named `name'
nv.c: At top level:
nv.c:39: error: storage size of `nv_bottom_halves' isn't known
make: *** [nv.o] Error 1 |
|