|
发表于 2002-11-8 23:04:07
|
显示全部楼层
我是redhat8.0,这个驱动不行~!!!!!!!
[root@AKWAA root]# cd /tmp
[root@AKWAA tmp]# ls
fonts.alias.sKgbUl Makefile~ orbit-root ssh-XXhNuzor
kern_compat.h mtd80x.c pci-scan.c XF86Config.test
linux-2.4.x mtd80x-linux-2.4.x.tgz pci-scan.h X-Test.log
Makefile mtd80x.v021.tar.gz Readme.txt
[root@AKWAA tmp]# touch *
[root@AKWAA tmp]# make clean
rm -f *.o
[root@AKWAA tmp]# make
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-2.4/include -O -Wall -Wstrict-prototypes -c -o pci-scan.o pci-scan.c
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /usr/include/linux/mm.h:4,
from pci-scan.c:62:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from pci-scan.c:62:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/mm.h:4,
from pci-scan.c:62:
/usr/include/asm/bitops.h:333:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning Using kernel headers in userspace.
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/mm.h:4,
from pci-scan.c:62:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/mm.h:4,
from pci-scan.c:62:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from pci-scan.c:67:
/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is
deprecated, use linux/slab.h
pci-scan.c: In function `pci_drv_register':
pci-scan.c:149: warning: implicit declaration of function `pci_find_class'
pci-scan.c:149: warning: assignment makes pointer from integer without a cast
pci-scan.c:157: warning: implicit declaration of function `pci_read_config_dword'
pci-scan.c:163: warning: implicit declaration of function `printk'
pci-scan.c:163: `KERN_DEBUG' undeclared (first use in this function)
pci-scan.c:163: (Each undeclared identifier is reported only once
pci-scan.c:163: for each function it appears in.)
pci-scan.c:163: parse error before string constant
pci-scan.c:164: warning: left-hand operand of comma expression has no effect
pci-scan.c:164: warning: left-hand operand of comma expression has no effect
pci-scan.c:164: parse error before ')' token
pci-scan.c:178: dereferencing pointer to incomplete type
pci-scan.c:187: `KERN_INFO' undeclared (first use in this function)
pci-scan.c:187: parse error before string constant
pci-scan.c:188: dereferencing pointer to incomplete type
pci-scan.c:188: warning: left-hand operand of comma expression has no effect
pci-scan.c:188: warning: left-hand operand of comma expression has no effect
pci-scan.c:188: warning: left-hand operand of comma expression has no effect
pci-scan.c:188: parse error before ')' token
pci-scan.c:191: dereferencing pointer to incomplete type
pci-scan.c:191: dereferencing pointer to incomplete type
pci-scan.c:192: dereferencing pointer to incomplete type
pci-scan.c:193: `KERN_WARNING' undeclared (first use in this function)
pci-scan.c:193: parse error before string constant
pci-scan.c:208: warning: implicit declaration of function `ioremap'
pci-scan.c:210: parse error before string constant
pci-scan.c:216: warning: implicit declaration of function `pci_read_config_word'pci-scan.c:219: parse error before string constant
pci-scan.c:222: warning: implicit declaration of function `pci_write_config_word'
pci-scan.c:226: dereferencing pointer to incomplete type
pci-scan.c:231: warning: implicit declaration of function `pci_set_master'
pci-scan.c:234: warning: implicit declaration of function `pci_read_config_byte'pci-scan.c:236: parse error before string constant
pci-scan.c:239: warning: implicit declaration of function `pci_write_config_byte'
pci-scan.c:246: warning: implicit declaration of function `kmalloc'
pci-scan.c:246: `GFP_KERNEL' undeclared (first use in this function)
pci-scan.c:246: warning: initialization makes pointer from integer without a cast
pci-scan.c:259: warning: implicit declaration of function `atomic_inc'
pci-scan.c:259: union has no member named `usecount'
pci-scan.c: In function `pci_drv_unregister':
pci-scan.c:422: warning: implicit declaration of function `atomic_dec'
pci-scan.c:422: union has no member named `usecount'
pci-scan.c:429: warning: implicit declaration of function `kfree'
pci-scan.c: In function `acpi_wake':
pci-scan.c:489: warning: implicit declaration of function `pci_write_config_dword'
pci-scan.c: In function `cleanup_module':
pci-scan.c:522: `KERN_WARNING' undeclared (first use in this function)
pci-scan.c:522: parse error before string constant
make: *** [pci-scan.o] Error 1
[root@AKWAA tmp]# insmod pci-scan.o
insmod: pci-scan.o: No such file or directory
[root@AKWAA tmp]# insmod mtd80x.o
insmod: mtd80x.o: No such file or directory
[root@AKWAA tmp]# :___((
没办法~~~ |
|