|
我在安装Legend-530tx rev B的驱动时出现以下错误,多次安装和换驱动都未解决。各位GG,JJ,DD,MM Help Me!!!!
[root@localhost temp]# ls
linux530_321.tar Makefile
[root@localhost temp]# tar xvf linux530_321.tar
Makefile
readme.txt
via-rhine.c
via-rhine.h
[root@localhost temp]# make all
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/usr/src/linux/include -c via-rhine.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 via-rhine.h:25,
from via-rhine.c:26:
/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 via-rhine.h:25,
from via-rhine.c:26:
/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 via-rhine.h:25,
from via-rhine.c:26:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
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 via-rhine.h:25,
from via-rhine.c:26:
/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 via-rhine.h:25,
from via-rhine.c:26:
/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 /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from via-rhine.h:31,
from via-rhine.c:26:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: 没有那个文件或目录
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from via-rhine.h:31,
from via-rhine.c:26:
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:57: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:59: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: (Each undeclared identifier is reported only once/usr/include/asm/pgalloc.h:59: for each function it appears in.)
/usr/include/asm/pgalloc.h:59: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: parse error before ')' token
/usr/include/asm/pgalloc.h:62: `USER_PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `swapper_pg_dir' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:70: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:80: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:80: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:83: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:85: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:90: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:99: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:103: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:105: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:105: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:118: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:127: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared (first use in this function)
In file included from via-rhine.h:31,
from via-rhine.c:26:
/usr/include/linux/skbuff.h: At top level:
/usr/include/linux/skbuff.h:100: parse error before "spinlock_t"
/usr/include/linux/skbuff.h:120: parse error before "atomic_t"
/usr/include/linux/skbuff.h:124: parse error before '}' token
/usr/include/linux/skbuff.h:183: parse error before "atomic_t"
/usr/include/linux/skbuff.h:215: parse error before '}' token
In file included from via-rhine.h:32,
from via-rhine.c:26:
/usr/include/linux/delay.h:13:23: asm/delay.h: 没有那个文件或目录
In file included from via-rhine.h:34,
from via-rhine.c:26:
/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is
deprecated, use linux/slab.h
In file included from via-rhine.h:35,
from via-rhine.c:26:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: 没有那个文件或目录
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: 没有那个文件或目录
In file included from via-rhine.h:35,
from via-rhine.c:26:
/usr/include/linux/interrupt.h:77: parse error before '(' token
/usr/include/linux/interrupt.h:78: parse error before '(' token
/usr/include/linux/interrupt.h:106: parse error before "atomic_t"
/usr/include/linux/interrupt.h:108: conflicting types for `data'
/usr/include/linux/skbuff.h:189: previous declaration of `data'
/usr/include/linux/interrupt.h:109: parse error before '}' token
/usr/include/linux/interrupt.h:127: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/linux/interrupt.h:127: requested alignment is not a constant
/usr/include/linux/interrupt.h:154: parse error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/include/linux/interrupt.h:158: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:162: parse error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/include/linux/interrupt.h:166: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/usr/include/linux/interrupt.h:173: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_enable':
/usr/include/linux/interrupt.h:187: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_hi_enable':
/usr/include/linux/interrupt.h:193: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:224: parse error before "global_bh_lock"
/usr/include/linux/interrupt.h: In function `mark_bh':
/usr/include/linux/interrupt.h:228: invalid use of undefined type `struct tasklet_struct'
In file included from via-rhine.c:26:
via-rhine.h: At top level:
via-rhine.h:415: field `timer' has incomplete type
via-rhine.c: In function `pci_drv_register':
via-rhine.c:96: warning: implicit declaration of function `pci_find_class'
via-rhine.c:96: warning: assignment makes pointer from integer without a cast
via-rhine.c:103: warning: implicit declaration of function `pci_read_config_dword'
via-rhine.c:109: warning: implicit declaration of function `printk'
via-rhine.c:109: `KERN_DEBUG' undeclared (first use in this function)
via-rhine.c:109: parse error before string constant
via-rhine.c:110: warning: left-hand operand of comma expression has no effect
via-rhine.c:110: warning: left-hand operand of comma expression has no effect
via-rhine.c:110: parse error before ')' token
via-rhine.c:124: dereferencing pointer to incomplete type
via-rhine.c:125: warning: implicit declaration of function `pci_resource_start'
via-rhine.c:151: warning: implicit declaration of function `pci_read_config_word'
via-rhine.c:154: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:154: parse error before string constant
via-rhine.c:157: warning: implicit declaration of function `pci_write_config_word'
via-rhine.c:161: dereferencing pointer to incomplete type
via-rhine.c:163: warning: implicit declaration of function `pci_set_master'
via-rhine.c:167: warning: implicit declaration of function `pci_read_config_byte'
via-rhine.c:169: parse error before string constant
via-rhine.c:172: warning: implicit declaration of function `pci_write_config_byte'
via-rhine.c:182: union has no member named `usecount'
via-rhine.c: In function `pci_drv_unregister':
via-rhine.c:310: union has no member named `usecount'
via-rhine.c: In function `acpi_wake':
via-rhine.c:367: warning: implicit declaration of function `pci_write_config_dword'
via-rhine.c: In function `via_probe1':
via-rhine.c:415: warning: implicit declaration of function `udelay'
via-rhine.c:446: warning: implicit declaration of function `init_etherdev'
via-rhine.c:446: warning: assignment makes pointer from integer without a cast
via-rhine.c:448: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:448: parse error before string constant
via-rhine.c:453: dereferencing pointer to incomplete type
via-rhine.c:455: dereferencing pointer to incomplete type
via-rhine.c:456: dereferencing pointer to incomplete type
via-rhine.c:459: warning: implicit declaration of function `kmalloc'
via-rhine.c:459: `GFP_KERNEL' undeclared (first use in this function)
via-rhine.c:459: warning: assignment makes pointer from integer without a cast
via-rhine.c:465: dereferencing pointer to incomplete type
via-rhine.c:471: dereferencing pointer to incomplete type
via-rhine.c:472: dereferencing pointer to incomplete type
via-rhine.c:474: dereferencing pointer to incomplete type
via-rhine.c:484: dereferencing pointer to incomplete type
via-rhine.c:485: dereferencing pointer to incomplete type
via-rhine.c:503: dereferencing pointer to incomplete type
via-rhine.c:504: dereferencing pointer to incomplete type
via-rhine.c:505: dereferencing pointer to incomplete type
via-rhine.c:506: dereferencing pointer to incomplete type
via-rhine.c:507: dereferencing pointer to incomplete type
via-rhine.c:508: dereferencing pointer to incomplete type
via-rhine.c:518: parse error before string constant
via-rhine.c: In function `mdio_read':
via-rhine.c:533: dereferencing pointer to incomplete type
via-rhine.c:538: dereferencing pointer to incomplete type
via-rhine.c: In function `mdio_write':
via-rhine.c:581: dereferencing pointer to incomplete type
via-rhine.c:585: dereferencing pointer to incomplete type
via-rhine.c: In function `netdev_open':
via-rhine.c:639: dereferencing pointer to incomplete type
via-rhine.c:640: dereferencing pointer to incomplete type
via-rhine.c:653: union has no member named `usecount'
via-rhine.c:655: warning: implicit declaration of function `request_irq'
via-rhine.c:655: dereferencing pointer to incomplete type
via-rhine.c:655: `SA_SHIRQ' undeclared (first use in this function)
via-rhine.c:655: dereferencing pointer to incomplete type
via-rhine.c:657: union has no member named `usecount'
via-rhine.c:662: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:662: parse error before string constant
via-rhine.c:663: dereferencing pointer to incomplete type
via-rhine.c:663: dereferencing pointer to incomplete type
via-rhine.c:663: warning: left-hand operand of comma expression has no effect
via-rhine.c:663: warning: left-hand operand of comma expression has no effect
via-rhine.c:663: parse error before ')' token
via-rhine.c:667: warning: implicit declaration of function `virt_to_bus'
via-rhine.c:671: dereferencing pointer to incomplete type
via-rhine.c:687: dereferencing pointer to incomplete type
via-rhine.c:688: dereferencing pointer to incomplete type
via-rhine.c:691: warning: implicit declaration of function `netif_start_queue'
via-rhine.c:731: parse error before string constant
via-rhine.c:733: dereferencing pointer to incomplete type
via-rhine.c:734: warning: left-hand operand of comma expression has no effect
via-rhine.c:734: warning: left-hand operand of comma expression has no effect
via-rhine.c:734: parse error before ')' token
via-rhine.c:738: `jiffies' undeclared (first use in this function)
via-rhine.c: In function `check_duplex':
via-rhine.c:748: dereferencing pointer to incomplete type
via-rhine.c:749: dereferencing pointer to incomplete type
via-rhine.c:760: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:760: parse error before string constant
via-rhine.c:761: dereferencing pointer to incomplete type
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: parse error before ')' token
via-rhine.c: In function `netdev_timer':
via-rhine.c:774: dereferencing pointer to incomplete type
via-rhine.c:775: dereferencing pointer to incomplete type
via-rhine.c:779: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:779: parse error before string constant
via-rhine.c:783: warning: implicit declaration of function `netif_queue_stopped'via-rhine.c:785: `jiffies' undeclared (first use in this function)
via-rhine.c:785: dereferencing pointer to incomplete type
via-rhine.c:775: warning: unused variable `ioaddr'
via-rhine.c:774: confused by earlier errors, bailing out
make: *** [via-rhine.o] Error 1 |
|