|
|

楼主 |
发表于 2003-10-9 18:21:06
|
显示全部楼层
出现以下错误是怎么回事?
- [root@book drm]# make -f Makefile.linux
- === KERNEL HEADERS IN /lib/modules/2.4.20-8/build/include
- === SMP=0 MODULES=1 MODVERSIONS=1 AGP=1
- === Compiling for machine i686
- === WARNING
- === WARNING Use 2.4.x kernels ONLY !
- === WARNING
- cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -DEXPORT_SYMTAB -I/lib/modules/2.4.20-8/build/include -c gamma_drv.c -o gamma_drv.o
- In file included from /lib/modules/2.4.20-8/build/include/linux/irq.h:69,
- from /lib/modules/2.4.20-8/build/include/asm/hardirq.h:6,
- from /lib/modules/2.4.20-8/build/include/linux/interrupt.h:46,
- from /lib/modules/2.4.20-8/build/include/asm/highmem.h:25,
- from /lib/modules/2.4.20-8/build/include/linux/highmem.h:11,
- from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
- from /lib/modules/2.4.20-8/build/include/asm/io.h:47,
- from /lib/modules/2.4.20-8/build/include/asm/pci.h:35,
- from /lib/modules/2.4.20-8/build/include/linux/pci.h:657,
- from drmP.h:50,
- from gamma_drv.c:34:
- /lib/modules/2.4.20-8/build/include/asm/hw_irq.h: In function `x86_do_profile':
- /lib/modules/2.4.20-8/build/include/asm/hw_irq.h:195: warning: nested extern declaration of `prof_cpu_mask'
- /lib/modules/2.4.20-8/build/include/asm/hw_irq.h:196: warning: nested extern declaration of `_stext'
- In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
- from /lib/modules/2.4.20-8/build/include/asm/io.h:47,
- from /lib/modules/2.4.20-8/build/include/asm/pci.h:35,
- from /lib/modules/2.4.20-8/build/include/linux/pci.h:657,
- from drmP.h:50,
- from gamma_drv.c:34:
- /lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
- /lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
- In file included from gamma_drv.c:54:
- drm_vm.h: In function `gamma_mmap':
- drm_vm.h:462: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
- drm_vm.h:462: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
- drm_vm.h:462: too few arguments to function `remap_page_range_R2baf18f2'
- make: *** [gamma_drv.o] Error 1
复制代码 |
|