红联Linux门户
Linux帮助

r8196驱动问题

发布时间:2009-03-04 21:13:00来源:红联作者:liukaiyue
r8169.c:96: warning: (near initialization for `__devinitdata')
r8169.c:96: warning: excess elements in scalar initializer
r8169.c:96: warning: (near initialization for `__devinitdata')
r8169.c:96: warning: excess elements in scalar initializer
r8169.c:96: warning: (near initialization for `__devinitdata')
r8169.c:96: warning: excess elements in scalar initializer
r8169.c:96: warning: (near initialization for `__devinitdata')
r8169.c:97: warning: braces around scalar initializer
r8169.c:97: warning: (near initialization for `__devinitdata')
r8169.c:97: warning: excess elements in scalar initializer
r8169.c:97: warning: (near initialization for `__devinitdata')
r8169.c:98: warning: data definition has no type or storage class
r8169.c:100: error: invalid application of `sizeof' to incomplete type `pci_device_id'
r8169.c:100: error: `rtl8169_pci_tbl' undeclared here (not in a function)
r8169.c:234: error: syntax error before "u8"
r8169.c:234: warning: no semicolon at end of struct or union
r8169.c:235: warning: type defaults to `int' in declaration of `RxConfigMask'
r8169.c:235: warning: data definition has no type or storage class
r8169.c:236: warning: type defaults to `int' in declaration of `rtl_chip_info'
r8169.c:237: warning: braces around scalar initializer
r8169.c:237: warning: (near initialization for `rtl_chip_info[0]')
r8169.c:237: warning: initialization makes integer from pointer without a cast
r8169.c:238: warning: excess elements in scalar initializer
r8169.c:238: warning: (near initialization for `rtl_chip_info[0]')
r8169.c:239: warning: excess elements in scalar initializer
r8169.c:239: warning: (near initialization for `rtl_chip_info[0]')
r8169.c:241: warning: data definition has no type or storage class
r8169.c:253: error: syntax error before "u32"
r8169.c:253: warning: no semicolon at end of struct or union
r8169.c:254: warning: type defaults to `int' in declaration of `vlan_tag'
r8169.c:254: warning: data definition has no type or storage class
r8169.c:255: error: syntax error before "buf_addr"
r8169.c:255: warning: type defaults to `int' in declaration of `buf_addr'
r8169.c:255: warning: data definition has no type or storage class
r8169.c:256: error: syntax error before "buf_Haddr"
r8169.c:256: warning: type defaults to `int' in declaration of `buf_Haddr'
r8169.c:256: warning: data definition has no type or storage class
r8169.c:260: error: syntax error before "u32"
r8169.c:260: warning: no semicolon at end of struct or union
r8169.c:261: warning: type defaults to `int' in declaration of `vlan_tag'
r8169.c:261: warning: data definition has no type or storage class
r8169.c:262: error: syntax error before "buf_addr"
r8169.c:262: warning: type defaults to `int' in declaration of `buf_addr'
r8169.c:262: warning: data definition has no type or storage class
r8169.c:263: error: syntax error before "buf_Haddr"
r8169.c:263: warning: type defaults to `int' in declaration of `buf_Haddr'
r8169.c:263: warning: data definition has no type or storage class
r8169.c:271: error: syntax error before "spinlock_t"
r8169.c:271: warning: no semicolon at end of struct or union
r8169.c:283: error: syntax error before '}' token
r8169.c:290: warning: "struct net_device" declared inside parameter list
r8169.c:290: warning: its scope is only this definition or declaration, which is probably not what you want
r8169.c:291: warning: "struct net_device" declared inside parameter list
r8169.c:292: warning: "struct pt_regs" declared inside parameter list
r8169.c:293: warning: "struct net_device" declared inside parameter list
r8169.c:294: warning: "struct net_device" declared inside parameter list
r8169.c:295: warning: "struct net_device" declared inside parameter list
r8169.c:296: error: syntax error before "ether_crc"
r8169.c:296: warning: type defaults to `int' in declaration of `ether_crc'
r8169.c:296: warning: data definition has no type or storage class
r8169.c:297: warning: "struct net_device" declared inside parameter list
r8169.c:298: warning: "struct net_device" declared inside parameter list
r8169.c:299: warning: "struct net_device" declared inside parameter list
r8169.c:301: error: syntax error before "rtl8169_intr_mask"
r8169.c:301: warning: type defaults to `int' in declaration of `rtl8169_intr_mask'
r8169.c:302: warning: data definition has no type or storage class
r8169.c: In function `RTL8169_WRITE_GMII_REG':
r8169.c:324: warning: implicit declaration of function `writel'
r8169.c:325: warning: implicit declaration of function `udelay'
r8169.c:329: warning: implicit declaration of function `readl'
r8169.c: At top level:
r8169.c:366: error: syntax error before "rtl8169_init_board"
r8169.c:366: warning: "struct net_device" declared inside parameter list
r8169.c:367: warning: return type defaults to `int'
r8169.c: In function `rtl8169_init_board':
r8169.c:373: error: `u32' undeclared (first use in this function)
r8169.c:373: error: (Each undeclared identifier is reported only once
r8169.c:373: error: for each function it appears in.)
r8169.c:373: error: syntax error before "tmp"
r8169.c:382: warning: implicit declaration of function `init_etherdev'
r8169.c:382: error: dereferencing pointer to incomplete type
r8169.c:382: warning: assignment makes pointer from integer without a cast
r8169.c:384: warning: implicit declaration of function `printk'
r8169.c:384: error: `KERN_ERR' undeclared (first use in this function)
r8169.c:384: error: syntax error before string constant
r8169.c:385: error: `ENOMEM' undeclared (first use in this function)
r8169.c:389: error: dereferencing pointer to incomplete type
r8169.c:392: warning: implicit declaration of function `pci_enable_device'
r8169.c:396: warning: implicit declaration of function `pci_resource_start'
r8169.c:397: warning: implicit declaration of function `pci_resource_end'
r8169.c:398: warning: implicit declaration of function `pci_resource_flags'
r8169.c:399: warning: implicit declaration of function `pci_resource_len'
r8169.c:402: error: `IORESOURCE_MEM' undeclared (first use in this function)
r8169.c:403: error: syntax error before string constant
r8169.c:404: error: `ENODEV' undeclared (first use in this function)
r8169.c:410: error: syntax error before string constant
r8169.c:416: warning: implicit declaration of function `pci_request_regions'
r8169.c:416: error: dereferencing pointer to incomplete type
r8169.c:421: warning: implicit declaration of function `pci_set_master'
r8169.c:425: warning: implicit declaration of function `ioremap'
r8169.c:425: warning: assignment makes pointer from integer without a cast
r8169.c:427: error: syntax error before string constant
r8169.c:428: error: `EIO' undeclared (first use in this function)
r8169.c:434: warning: implicit declaration of function `writeb'
r8169.c:438: warning: implicit declaration of function `readb'
r8169.c:444: error: `tmp' undeclared (first use in this function)
r8169.c:448: warning: implicit declaration of function `ARRAY_SIZE'
r8169.c:449: error: request for member `version' in something not a structure or union
r8169.c:450: error: dereferencing pointer to incomplete type
r8169.c:455: error: `KERN_DEBUG' undeclared (first use in this function)
r8169.c:455: error: syntax error before string constant
r8169.c:456: error: syntax error before string constant
r8169.c:457: error: dereferencing pointer to incomplete type
r8169.c:467: warning: implicit declaration of function `iounmap'
r8169.c:470: warning: implicit declaration of function `pci_release_regions'
r8169.c:473: warning: implicit declaration of function `unregister_netdev'
r8169.c:474: warning: implicit declaration of function `kfree'
r8169.c: At top level:
r8169.c:485: error: syntax error before "rtl8169_init_one"
r8169.c:486: warning: return type defaults to `int'
r8169.c: In function `rtl8169_init_one':
r8169.c:502: error: `KERN_INFO' undeclared (first use in this function)
r8169.c:502: error: syntax error before string constant
r8169.c:506: warning: passing arg 2 of `rtl8169_init_board' from incompatible pointer type
r8169.c:511: error: dereferencing pointer to incomplete type
r8169.c:518: error: dereferencing pointer to incomplete type
r8169.c:521: error: dereferencing pointer to incomplete type
r8169.c:522: error: dereferencing pointer to incomplete type
r8169.c:523: error: dereferencing pointer to incomplete type
r8169.c:524: error: dereferencing pointer to incomplete type
r8169.c:525: error: dereferencing pointer to incomplete type
r8169.c:526: error: dereferencing pointer to incomplete type
r8169.c:527: error: dereferencing pointer to incomplete type
r8169.c:527: error: `HZ' undeclared (first use in this function)
r8169.c:528: error: dereferencing pointer to incomplete type
r8169.c:528: error: dereferencing pointer to incomplete type
r8169.c:529: error: dereferencing pointer to incomplete type
r8169.c:532: error: dereferencing pointer to incomplete type
r8169.c:533: error: dereferencing pointer to incomplete type
r8169.c:534: error: dereferencing pointer to incomplete type
r8169.c:536: error: `KERN_DEBUG' undeclared (first use in this function)
r8169.c:536: error: syntax error before string constant
r8169.c:538: warning: implicit declaration of function `spin_lock_init'
r8169.c:538: error: dereferencing pointer to incomplete type
r8169.c:540: error: dereferencing pointer to incomplete type
r8169.c:544: error: syntax error before string constant
r8169.c:559: error: syntax error before string constant
r8169.c:572: error: syntax error before string constant
r8169.c:593: error: syntax error before string constant
r8169.c:596: error: syntax error before string constant
r8169.c:609: error: syntax error before string constant
r8169.c: At top level:
r8169.c:624: error: syntax error before "rtl8169_remove_one"
r8169.c:625: warning: return type defaults to `int'
r8169.c: In function `rtl8169_remove_one':
r8169.c:626: error: dereferencing pointer to incomplete type
r8169.c:627: error: dereferencing pointer to incomplete type
r8169.c:633: error: dereferencing pointer to incomplete type
r8169.c:637: warning: implicit declaration of function `memset'
r8169.c:637: error: invalid application of `sizeof' to incomplete type `net_device'
r8169.c:637: error: invalid application of `sizeof' to incomplete type `rtl8169_private'
r8169.c:640: error: dereferencing pointer to incomplete type
r8169.c: At top level:
r8169.c:650: warning: "struct net_device" declared inside parameter list
r8169.c:651: error: conflicting types for 'rtl8169_open'
r8169.c:290: error: previous declaration of 'rtl8169_open' was here
r8169.c:651: error: conflicting types for 'rtl8169_open'
r8169.c:290: error: previous declaration of 'rtl8169_open' was here
r8169.c: In function `rtl8169_open':
r8169.c:652: error: dereferencing pointer to incomplete type
r8169.c:654: error: `u8' undeclared (first use in this function)
r8169.c:654: error: syntax error before "diff"
r8169.c:655: error: `u32' undeclared (first use in this function)
r8169.c:658: warning: implicit declaration of function `request_irq'
r8169.c:658: error: dereferencing pointer to incomplete type
r8169.c:658: error: `SA_SHIRQ' undeclared (first use in this function)
r8169.c:658: error: dereferencing pointer to incomplete type
r8169.c:664: error: dereferencing pointer to incomplete type
r8169.c:664: warning: implicit declaration of function `kmalloc'
r8169.c:664: error: invalid application of `sizeof' to incomplete type `TxDesc'
r8169.c:664: error: `GFP_KERNEL' undeclared (first use in this function)
r8169.c:666: error: `TxPhyAddr' undeclared (first use in this function)
r8169.c:666: warning: implicit declaration of function `virt_to_bus'
r8169.c:666: error: dereferencing pointer to incomplete type
r8169.c:667: error: `diff' undeclared (first use in this function)
r8169.c:669: error: dereferencing pointer to incomplete type
r8169.c:669: error: dereferencing pointer to incomplete type
r8169.c:671: error: dereferencing pointer to incomplete type
r8169.c:671: error: invalid application of `sizeof' to incomplete type `RxDesc'
r8169.c:673: error: `RxPhyAddr' undeclared (first use in this function)
r8169.c:673: error: dereferencing pointer to incomplete type
r8169.c:676: error: dereferencing pointer to incomplete type
r8169.c:676: error: dereferencing pointer to incomplete type
r8169.c:678: error: dereferencing pointer to incomplete type
r8169.c:678: error: dereferencing pointer to incomplete type
r8169.c:679: error: `KERN_INFO' undeclared (first use in this function)
r8169.c:679: error: syntax error before string constant
r8169.c:680: warning: implicit declaration of function `free_irq'
r8169.c:680: error: dereferencing pointer to incomplete type
r8169.c:681: error: dereferencing pointer to incomplete type
r8169.c:681: error: dereferencing pointer to incomplete type
r8169.c:682: error: dereferencing pointer to incomplete type
r8169.c:682: error: dereferencing pointer to incomplete type
r8169.c:683: error: `ENOMEM' undeclared (first use in this function)
r8169.c:685: error: dereferencing pointer to incomplete type
r8169.c:686: error: dereferencing pointer to incomplete type
r8169.c:687: error: syntax error before string constant
r8169.c:690: warning: passing arg 1 of `rtl8169_init_ring' from incompatible pointer type
r8169.c:691: warning: passing arg 1 of `rtl8169_hw_start' from incompatible pointer type
r8169.c: At top level:
r8169.c:704: warning: "struct net_device" declared inside parameter list
r8169.c:705: error: conflicting types for 'rtl8169_hw_start'
r8169.c:294: error: previous declaration of 'rtl8169_hw_start' was here
r8169.c:705: error: conflicting types for 'rtl8169_hw_start'
r8169.c:294: error: previous declaration of 'rtl8169_hw_start' was here
r8169.c: In function `rtl8169_hw_start':
r8169.c:706: error: dereferencing pointer to incomplete type
r8169.c:707: error: dereferencing pointer to incomplete type
r8169.c:708: error: `u32' undeclared (first use in this function)
r8169.c:708: error: syntax error before "i"
r8169.c:715: error: `i' undeclared (first use in this function)
r8169.c:725: warning: implicit declaration of function `writew'
r8169.c:728: error: dereferencing pointer to incomplete type
r8169.c:734: error: dereferencing pointer to incomplete type
r8169.c:736: error: dereferencing pointer to incomplete type
r8169.c:737: error: dereferencing pointer to incomplete type
r8169.c:743: warning: passing arg 1 of `rtl8169_set_rx_mode' from incompatible pointer type
r8169.c:746: warning: implicit declaration of function `readw'
r8169.c:751: warning: implicit declaration of function `netif_start_queue'
r8169.c: At top level:
r8169.c:762: warning: "struct net_device" declared inside parameter list
r8169.c:763: error: conflicting types for 'rtl8169_init_ring'
r8169.c:293: error: previous declaration of 'rtl8169_init_ring' was here
r8169.c:763: error: conflicting types for 'rtl8169_init_ring'
r8169.c:293: error: previous declaration of 'rtl8169_init_ring' was here
r8169.c: In function `rtl8169_init_ring':
r8169.c:764: error: dereferencing pointer to incomplete type
r8169.c:767: error: dereferencing pointer to incomplete type
r8169.c:768: error: dereferencing pointer to incomplete type
r8169.c:769: error: dereferencing pointer to incomplete type
r8169.c:770: error: dereferencing pointer to incomplete type
r8169.c:770: error: invalid application of `sizeof' to incomplete type `TxDesc'
r8169.c:771: error: dereferencing pointer to incomplete type
r8169.c:771: error: invalid application of `sizeof' to incomplete type `RxDesc'
r8169.c:774: error: dereferencing pointer to incomplete type
r8169.c:778: error: dereferencing pointer to incomplete type
r8169.c:780: error: dereferencing pointer to incomplete type
r8169.c:782: error: dereferencing pointer to incomplete type
r8169.c:782: error: dereferencing pointer to incomplete type
r8169.c:783: error: dereferencing pointer to incomplete type
r8169.c:783: error: dereferencing pointer to incomplete type
r8169.c: In function `rtl8169_tx_clear':
r8169.c:798: error: dereferencing pointer to incomplete type
r8169.c:800: error: dereferencing pointer to incomplete type
r8169.c:801: warning: implicit declaration of function `dev_kfree_skb'
r8169.c:801: error: dereferencing pointer to incomplete type
r8169.c:802: error: dereferencing pointer to incomplete type
r8169.c:803: error: dereferencing pointer to incomplete type
r8169.c: At top level:
r8169.c:815: warning: "struct net_device" declared inside parameter list
r8169.c:816: error: conflicting types for 'rtl8169_tx_timeout'
r8169.c:298: error: previous declaration of 'rtl8169_tx_timeout' was here
r8169.c:816: error: conflicting types for 'rtl8169_tx_timeout'
r8169.c:298: error: previous declaration of 'rtl8169_tx_timeout' was here
r8169.c: In function `rtl8169_tx_timeout':
r8169.c:817: error: dereferencing pointer to incomplete type
r8169.c:818: error: dereferencing pointer to incomplete type
r8169.c:819: error: `u8' undeclared (first use in this function)
r8169.c:819: error: syntax error before "tmp8"
r8169.c:822: error: `tmp8' undeclared (first use in this function)
r8169.c:831: warning: implicit declaration of function `spin_lock_irq'
r8169.c:831: error: dereferencing pointer to incomplete type
r8169.c:833: warning: implicit declaration of function `spin_unlock_irq'
r8169.c:833: error: dereferencing pointer to incomplete type
r8169.c:838: warning: implicit declaration of function `netif_wake_queue'
r8169.c: At top level:
r8169.c:848: warning: "struct net_device" declared inside parameter list
r8169.c:849: error: conflicting types for 'rtl8169_start_xmit'
r8169.c:291: error: previous declaration of 'rtl8169_start_xmit' was here
r8169.c:849: error: conflicting types for 'rtl8169_start_xmit'
r8169.c:291: error: previous declaration of 'rtl8169_start_xmit' was here
r8169.c: In function `rtl8169_start_xmit':
r8169.c:850: error: dereferencing pointer to incomplete type
r8169.c:851: error: dereferencing pointer to incomplete type
r8169.c:852: error: dereferencing pointer to incomplete type
r8169.c:854: error: dereferencing pointer to incomplete type
r8169.c:856: error: dereferencing pointer to incomplete type
r8169.c:857: error: dereferencing pointer to incomplete type
r8169.c:858: error: dereferencing pointer to incomplete type
r8169.c:858: error: dereferencing pointer to incomplete type
r8169.c:860: error: dereferencing pointer to incomplete type
r8169.c:860: error: dereferencing pointer to incomplete type
r8169.c:860: error: dereferencing pointer to incomplete type
r8169.c:862: error: dereferencing pointer to incomplete type
r8169.c:862: error: dereferencing pointer to incomplete type
r8169.c:862: error: dereferencing pointer to incomplete type
r8169.c:866: error: dereferencing pointer to incomplete type
r8169.c:866: error: `jiffies' undeclared (first use in this function)
r8169.c:868: error: dereferencing pointer to incomplete type
r8169.c:871: error: dereferencing pointer to incomplete type
r8169.c:873: error: dereferencing pointer to incomplete type
r8169.c:873: error: dereferencing pointer to incomplete type
r8169.c:874: warning: implicit declaration of function `netif_stop_queue'
r8169.c: At top level:
r8169.c:887: warning: "struct net_device" declared inside parameter list
r8169.c: In function `rtl8169_tx_interrupt':
r8169.c:890: error: dereferencing pointer to incomplete type
r8169.c:897: error: dereferencing pointer to incomplete type
r8169.c:898: error: dereferencing pointer to incomplete type
r8169.c:901: error: dereferencing pointer to incomplete type
r8169.c:902: warning: implicit declaration of function `dev_kfree_skb_irq'
r8169.c:902: error: dereferencing pointer to incomplete type
r8169.c:903: error: dereferencing pointer to incomplete type
r8169.c:904: error: dereferencing pointer to incomplete type
r8169.c:911: error: dereferencing pointer to incomplete type
r8169.c:912: error: dereferencing pointer to incomplete type
r8169.c:913: warning: implicit declaration of function `netif_queue_stopped'
r8169.c: At top level:
r8169.c:925: warning: "struct net_device" declared inside parameter list
r8169.c: In function `rtl8169_rx_interrupt':
r8169.c:936: error: dereferencing pointer to incomplete type
r8169.c:938: error: dereferencing pointer to incomplete type
r8169.c:940: error: dereferencing pointer to incomplete type
r8169.c:941: error: `KERN_INFO' undeclared (first use in this function)
r8169.c:941: error: syntax error before string constant
r8169.c:942: error: dereferencing pointer to incomplete type
r8169.c:943: error: dereferencing pointer to incomplete type
r8169.c:944: error: dereferencing pointer to incomplete type
r8169.c:945: error: dereferencing pointer to incomplete type
r8169.c:946: error: dereferencing pointer to incomplete type
r8169.c:949: error: dereferencing pointer to incomplete type
r8169.c:950: warning: implicit declaration of function `dev_alloc_skb'
r8169.c:950: warning: assignment makes pointer from integer without a cast
r8169.c:952: error: dereferencing pointer to incomplete type
r8169.c:953: warning: implicit declaration of function `skb_reserve'
r8169.c:954: warning: implicit declaration of function `eth_copy_and_sum'
r8169.c:954: error: dereferencing pointer to incomplete type
r8169.c:955: warning: implicit declaration of function `skb_put'
r8169.c:956: error: dereferencing pointer to incomplete type
r8169.c:956: warning: implicit declaration of function `eth_type_trans'
r8169.c:957: warning: implicit declaration of function `netif_rx'
r8169.c:960: error: dereferencing pointer to incomplete type
r8169.c:962: error: dereferencing pointer to incomplete type
r8169.c:964: error: dereferencing pointer to incomplete type
r8169.c:964: error: dereferencing pointer to incomplete type
r8169.c:965: error: dereferencing pointer to incomplete type
r8169.c:965: error: `jiffies' undeclared (first use in this function)
r8169.c:966: error: dereferencing pointer to incomplete type
r8169.c:967: error: dereferencing pointer to incomplete type
r8169.c:970: error: `KERN_WARNING' undeclared (first use in this function)
r8169.c:970: error: syntax error before string constant
r8169.c:973: error: dereferencing pointer to incomplete type
r8169.c:981: error: dereferencing pointer to incomplete type
r8169.c: At top level:
r8169.c:993: warning: "struct pt_regs" declared inside parameter list
r8169.c:994: error: conflicting types for 'rtl8169_interrupt'
r8169.c:292: error: previous declaration of 'rtl8169_interrupt' was here
r8169.c:994: error: conflicting types for 'rtl8169_interrupt'
r8169.c:292: error: previous declaration of 'rtl8169_interrupt' was here
r8169.c: In function `rtl8169_interrupt':
r8169.c:996: error: dereferencing pointer to incomplete type
r8169.c:998: error: dereferencing pointer to incomplete type
r8169.c:1020: warning: passing arg 1 of `rtl8169_rx_interrupt' from incompatible pointer type
r8169.c:1025: warning: implicit declaration of function `spin_lock'
r8169.c:1025: error: dereferencing pointer to incomplete type
r8169.c:1026: warning: passing arg 1 of `rtl8169_tx_interrupt' from incompatible pointer type
r8169.c:1027: warning: implicit declaration of function `spin_unlock'
r8169.c:1027: error: dereferencing pointer to incomplete type
r8169.c:1034: error: `KERN_WARNING' undeclared (first use in this function)
r8169.c:1034: error: syntax error before string constant
r8169.c: At top level:
r8169.c:1047: warning: "struct net_device" declared inside parameter list
r8169.c:1048: error: conflicting types for 'rtl8169_close'
r8169.c:295: error: previous declaration of 'rtl8169_close' was here
r8169.c:1048: error: conflicting types for 'rtl8169_close'
r8169.c:295: error: previous declaration of 'rtl8169_close' was here
r8169.c: In function `rtl8169_close':
r8169.c:1049: error: dereferencing pointer to incomplete type
r8169.c:1050: error: dereferencing pointer to incomplete type
r8169.c:1056: error: dereferencing pointer to incomplete type
r8169.c:1065: error: dereferencing pointer to incomplete type
r8169.c:1068: error: dereferencing pointer to incomplete type
r8169.c:1070: warning: implicit declaration of function `synchronize_irq'
r8169.c:1071: error: dereferencing pointer to incomplete type
r8169.c:1074: error: dereferencing pointer to incomplete type
r8169.c:1075: error: dereferencing pointer to incomplete type
r8169.c:1076: error: dereferencing pointer to incomplete type
r8169.c:1077: error: dereferencing pointer to incomplete type
r8169.c:1078: error: dereferencing pointer to incomplete type
r8169.c:1079: error: dereferencing pointer to incomplete type
r8169.c:1080: error: dereferencing pointer to incomplete type
r8169.c:1082: error: dereferencing pointer to incomplete type
r8169.c: At top level:
r8169.c:1096: error: syntax error before "ether_crc"
r8169.c:1097: warning: return type defaults to `int'
r8169.c:1119: warning: "struct net_device" declared inside parameter list
r8169.c:1120: error: conflicting types for 'rtl8169_set_rx_mode'
r8169.c:297: error: previous declaration of 'rtl8169_set_rx_mode' was here
r8169.c:1120: error: conflicting types for 'rtl8169_set_rx_mode'
r8169.c:297: error: previous declaration of 'rtl8169_set_rx_mode' was here
r8169.c: In function `rtl8169_set_rx_mode':
r8169.c:1121: error: dereferencing pointer to incomplete type
r8169.c:1122: error: dereferencing pointer to incomplete type
r8169.c:1124: error: `u32' undeclared (first use in this function)
r8169.c:1124: error: syntax error before "mc_filter"
r8169.c:1126: error: syntax error before "tmp"
r8169.c:1129: error: dereferencing pointer to incomplete type
r8169.c:1131: error: `KERN_NOTICE' undeclared (first use in this function)
r8169.c:1131: error: syntax error before string constant
r8169.c:1133: error: `mc_filter' undeclared (first use in this function)
r8169.c:1134: error: dereferencing pointer to incomplete type
r8169.c:1134: error: dereferencing pointer to incomplete type
r8169.c:1142: error: dereferencing pointer to incomplete type
r8169.c:1142: error: dereferencing pointer to incomplete type
r8169.c:1142: error: dereferencing pointer to incomplete type
r8169.c:1143: warning: implicit declaration of function `set_bit'
r8169.c:1143: error: dereferencing pointer to incomplete type
r8169.c:1146: warning: implicit declaration of function `spin_lock_irqsave'
r8169.c:1146: error: dereferencing pointer to incomplete type
r8169.c:1148: error: `tmp' undeclared (first use in this function)
r8169.c:1148: error: dereferencing pointer to incomplete type
r8169.c:1154: warning: implicit declaration of function `spin_unlock_irqrestore'r8169.c:1154: error: dereferencing pointer to incomplete type
r8169.c: At top level:
r8169.c:1165: warning: "struct net_device" declared inside parameter list
r8169.c:1166: error: conflicting types for 'rtl8169_get_stats'
r8169.c:299: error: previous declaration of 'rtl8169_get_stats' was here
r8169.c:1166: error: conflicting types for 'rtl8169_get_stats'
r8169.c:299: error: previous declaration of 'rtl8169_get_stats' was here
r8169.c: In function `rtl8169_get_stats':
r8169.c:1167: error: dereferencing pointer to incomplete type
r8169.c:1169: error: dereferencing pointer to incomplete type
r8169.c: At top level:
r8169.c:1180: error: variable `rtl8169_pci_driver' has initializer but incomplete type
r8169.c:1181: error: unknown field `name' specified in initializer
r8169.c:1181: warning: excess elements in struct initializer
r8169.c:1181: warning: (near initialization for `rtl8169_pci_driver')
r8169.c:1182: error: unknown field `id_table' specified in initializer
r8169.c:1182: warning: excess elements in struct initializer
r8169.c:1182: warning: (near initialization for `rtl8169_pci_driver')
r8169.c:1183: error: unknown field `probe' specified in initializer
r8169.c:1183: warning: excess elements in struct initializer
r8169.c:1183: warning: (near initialization for `rtl8169_pci_driver')
r8169.c:1184: error: unknown field `remove' specified in initializer
r8169.c:1184: warning: excess elements in struct initializer
r8169.c:1184: warning: (near initialization for `rtl8169_pci_driver')
r8169.c:1185: error: unknown field `suspend' specified in initializer
r8169.c:1185: warning: excess elements in struct initializer
r8169.c:1185: warning: (near initialization for `rtl8169_pci_driver')
r8169.c:1186: error: unknown field `resume' specified in initializer
r8169.c:1186: warning: excess elements in struct initializer
r8169.c:1186: warning: (near initialization for `rtl8169_pci_driver')
r8169.c:1194: error: syntax error before "rtl8169_init_module"
r8169.c:1195: warning: return type defaults to `int'
r8169.c: In function `rtl8169_init_module':
r8169.c:1196: warning: implicit declaration of function `pci_module_init'
r8169.c: At top level:
r8169.c:1203: error: syntax error before "rtl8169_cleanup_module"
r8169.c:1204: warning: return type defaults to `int'
r8169.c: In function `rtl8169_cleanup_module':
r8169.c:1205: warning: implicit declaration of function `pci_unregister_driver'
r8169.c: At top level:
r8169.c:1212: warning: type defaults to `int' in declaration of `module_init'
r8169.c:1212: warning: parameter names (without types) in function declaration
r8169.c:1212: warning: data definition has no type or storage class
r8169.c:1213: warning: type defaults to `int' in declaration of `module_exit'
r8169.c:1213: warning: parameter names (without types) in function declaration
r8169.c:1213: warning: data definition has no type or storage class
r8169.c:1180: error: storage size of `rtl8169_pci_driver' isn't known
r8169.c:290: warning: 'rtl8169_open' declared `static' but never defined
r8169.c:291: warning: 'rtl8169_start_xmit' declared `static' but never defined
r8169.c:292: warning: 'rtl8169_interrupt' declared `static' but never defined
r8169.c:293: warning: 'rtl8169_init_ring' declared `static' but never defined
r8169.c:294: warning: 'rtl8169_hw_start' declared `static' but never defined
r8169.c:295: warning: 'rtl8169_close' declared `static' but never defined
r8169.c:297: warning: 'rtl8169_set_rx_mode' declared `static' but never defined
r8169.c:298: warning: 'rtl8169_tx_timeout' declared `static' but never defined
r8169.c:299: warning: 'rtl8169_get_stats' declared `static' but never defined
r8169.c:651: warning: 'rtl8169_open' defined but not used
r8169.c:763: warning: 'rtl8169_init_ring' defined but not used
r8169.c:816: warning: 'rtl8169_tx_timeout' defined but not used
r8169.c:849: warning: 'rtl8169_start_xmit' defined but not used
r8169.c:994: warning: 'rtl8169_interrupt' defined but not used
r8169.c:1048: warning: 'rtl8169_close' defined but not used
r8169.c:1120: warning: 'rtl8169_set_rx_mode' defined but not used
make: *** [r8169.o] ??? 1

在make之后出现了这么多的问题,求教各位该如何解决
文章评论

共有 8 条评论

  1. liukaiyue 于 2009-03-07 10:26:10发表:

    那咋办啊
    要装什么啊

  2. rtl 于 2009-03-06 14:41:33发表:

    引用:
    make -C src/ clean
    make[1]: Entering directory `/root/r8169-6.008.00/src'
    rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_version s Module.symvers Modules.symvers rset modul ...
    liukaiyue 发表于 2009-3-5 14:47


    貌次未 ? 内核的 ??的源代?

  3. liukaiyue 于 2009-03-06 12:54:30发表:

    哪位朋友帮下忙
    初学者

  4. liukaiyue 于 2009-03-05 18:01:01发表:

    到处都有问题{:3_111:}

  5. liukaiyue 于 2009-03-05 14:47:47发表:

    make -C src/ clean
    make[1]: Entering directory `/root/r8169-6.008.00/src'
    rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_version s Module.symvers Modules.symvers rset modules.order
    make[1]: Leaving directory `/root/r8169-6.008.00/src'
    make -C src/ modules
    make[1]: Entering directory `/root/r8169-6.008.00/src'
    make -C /lib/modules/2.6.9-55.ELsmp/build SUBDIRS=/root/r8169-6.008.00/src modul es
    make: *** /lib/modules/2.6.9-55.ELsmp/build: 没有那个文件或目录。 停止。
    make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: ** * [modules] 错误 2
    make[1]: Leaving directory `/root/r8169-6.008.00/src'
    make: *** [modules] 错误 2
    还是不行啊 麻烦帮看下

  6. liukaiyue 于 2009-03-04 22:07:38发表:

    莫非他那个驱动已经安装好了

  7. liukaiyue 于 2009-03-04 22:07:15发表:

    能说的清楚些么 我是初学 不太明白

  8. rtl 于 2009-03-04 21:32:51发表:

    [i=s] 本帖最后由 rtl 于 2009-3-4 22:07 编辑 [/i]

    2.6.x 的内核 本?就 ?有 rtl8169 的?? ,/lib/modules/'uname -r'/kernel/drivers/net/r8169.ko 就是
    真搞不懂 有自?的 不用 偏要 自己 ??

    [attach]11951[/attach] ????版本 在 2.6.26.6 中 ?利?? 如果 你??出?自己改代?吧