Script started on Thu 21 Feb 2008 05:21:44 PM EST $ make all gcc -D__KERNEL__ -DMODULE -O -Wall -Wstrict-prototypes -I/usr/include -DUSE_IO_OPS -c -o sundance.o sundance.c sundance.c:101:26: error: linux/module.h: No such file or directory sundance.c:103:26: error: linux/string.h: No such file or directory sundance.c:104:25: error: linux/timer.h: No such file or directory sundance.c:106:26: error: linux/ioport.h: No such file or directory sundance.c:107:24: error: linux/slab.h: No such file or directory sundance.c:108:29: error: linux/interrupt.h: No such file or directory In file included from /usr/include/linux/socket.h:23, from /usr/include/linux/if.h:23, from /usr/include/linux/netdevice.h:28, from sundance.c:110: /usr/include/linux/uio.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘iov_length’ /usr/include/linux/uio.h:55: error: expected declaration specifiers or ‘...’ before ‘size_t’ sundance.c:111:31: error: linux/etherdevice.h: No such file or directory sundance.c:112:26: error: linux/skbuff.h: No such file or directory sundance.c:113:24: error: linux/init.h: No such file or directory sundance.c:116:25: error: asm/uaccess.h: No such file or directory sundance.c:117:70: error: asm/processor.h: No such file or directory sundance.c:118:24: error: asm/bitops.h: No such file or directory sundance.c:119:20: error: asm/io.h: No such file or directory sundance.c:120:25: error: linux/delay.h: No such file or directory sundance.c:121:28: error: linux/spinlock.h: No such file or directory sundance.c:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitdata’ sundance.c:139: error: expected declaration specifiers or ‘...’ before string constant sundance.c:139: warning: data definition has no type or storage class sundance.c:139: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’ sundance.c:139: warning: function declaration isn’t a prototype sundance.c:140: error: expected declaration specifiers or ‘...’ before string constant sundance.c:140: warning: data definition has no type or storage class sundance.c:140: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’ sundance.c:140: warning: function declaration isn’t a prototype sundance.c:142: error: expected ‘)’ before string constant sundance.c:143: error: expected ‘)’ before string constant sundance.c:144: error: expected ‘)’ before string constant sundance.c:145: error: expected ‘)’ before string constant sundance.c:146: error: expected ‘)’ before string constant sundance.c:147: error: expected ‘)’ before string constant sundance.c:148: error: expected ‘)’ before string constant sundance.c:149: error: expected ‘)’ before string constant sundance.c:150: error: expected ‘)’ before string constant sundance.c:151: error: expected ‘)’ before string constant sundance.c:241: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitdata’ sundance.c:250: warning: data definition has no type or storage class sundance.c:250: warning: type defaults to ‘int’ in declaration of ‘MODULE_DEVICE_TABLE’ sundance.c:250: warning: parameter names (without types) in function declaration sundance.c:385: error: expected specifier-qualifier-list before ‘u32’ sundance.c:411: error: expected specifier-qualifier-list before ‘dma_addr_t’ sundance.c:486: warning: ‘struct net_device’ declared inside parameter list sundance.c:486: warning: its scope is only this definition or declaration, which is probably not what you want sundance.c:487: warning: ‘struct net_device’ declared inside parameter list sundance.c:488: warning: ‘struct net_device’ declared inside parameter list sundance.c:489: warning: ‘struct net_device’ declared inside parameter list sundance.c:491: warning: ‘struct net_device’ declared inside parameter list sundance.c:492: warning: ‘struct net_device’ declared inside parameter list sundance.c:493: warning: ‘struct net_device’ declared inside parameter list sundance.c:494: warning: ‘struct pt_regs’ declared inside parameter list sundance.c:496: warning: ‘struct net_device’ declared inside parameter list sundance.c:497: warning: ‘struct net_device’ declared inside parameter list sundance.c:498: warning: ‘struct net_device’ declared inside parameter list sundance.c:498: error: conflicting types for ‘netdev_error’ sundance.c:497: error: previous declaration of ‘netdev_error’ was here sundance.c:499: warning: ‘struct net_device’ declared inside parameter list sundance.c:500: warning: ‘struct net_device’ declared inside parameter list sundance.c:501: warning: ‘struct net_device’ declared inside parameter list sundance.c:502: warning: ‘struct net_device’ declared inside parameter list sundance.c:506: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sundance_probe1’ sundance.c: In function ‘eeprom_read’: sundance.c:711: warning: implicit declaration of function ‘outw’ sundance.c:713: warning: implicit declaration of function ‘inw’ sundance.c: In function ‘mdio_sync’: sundance.c:749: warning: implicit declaration of function ‘outb’ sundance.c:750: warning: implicit declaration of function ‘inb’ sundance.c: At top level: sundance.c:756: warning: ‘struct net_device’ declared inside parameter list sundance.c:757: error: conflicting types for ‘mdio_read’ sundance.c:486: error: previous declaration of ‘mdio_read’ was here sundance.c: In function ‘mdio_read’: sundance.c:758: error: dereferencing pointer to incomplete type sundance.c: At top level: sundance.c:785: warning: ‘struct net_device’ declared inside parameter list sundance.c:786: error: conflicting types for ‘mdio_write’ sundance.c:487: error: previous declaration of ‘mdio_write’ was here sundance.c: In function ‘mdio_write’: sundance.c:787: error: dereferencing pointer to incomplete type sundance.c: At top level: sundance.c:846: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ether_crc’ sundance.c:862: warning: ‘struct net_device’ declared inside parameter list sundance.c:863: error: conflicting types for ‘netdev_open’ sundance.c:488: error: previous declaration of ‘netdev_open’ was here sundance.c: In function ‘netdev_open’: sundance.c:864: error: dereferencing pointer to incomplete type sundance.c:865: error: dereferencing pointer to incomplete type sundance.c:870: warning: implicit declaration of function ‘request_irq’ sundance.c:870: error: dereferencing pointer to incomplete type sundance.c:870: error: ‘SA_SHIRQ’ undeclared (first use in this function) sundance.c:870: error: (Each undeclared identifier is reported only once sundance.c:870: error: for each function it appears in.) sundance.c:870: error: dereferencing pointer to incomplete type sundance.c:875: warning: implicit declaration of function ‘printk’ sundance.c:875: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:875: error: expected ‘)’ before string constant sundance.c:878: warning: passing argument 1 of ‘init_ring’ from incompatible pointer type sundance.c:880: warning: implicit declaration of function ‘outl’ sundance.c:880: error: ‘struct netdev_private’ has no member named ‘rx_ring_dma’ sundance.c:884: error: dereferencing pointer to incomplete type sundance.c:889: error: dereferencing pointer to incomplete type sundance.c:890: error: dereferencing pointer to incomplete type sundance.c:890: error: ‘struct netdev_private’ has no member named ‘default_port’ sundance.c:892: error: ‘struct netdev_private’ has no member named ‘mcastlock’ sundance.c:892: error: ‘spinlock_t’ undeclared (first use in this function) sundance.c:892: error: expected ‘;’ before ‘SPIN_LOCK_UNLOCKED’ sundance.c:894: warning: passing argument 1 of ‘set_rx_mode’ from incompatible pointer type sundance.c:900: warning: implicit declaration of function ‘netif_start_queue’ sundance.c:908: error: expected ‘)’ before string constant sundance.c:915: warning: implicit declaration of function ‘init_timer’ sundance.c:915: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:916: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:916: error: ‘jiffies’ undeclared (first use in this function) sundance.c:916: error: ‘HZ’ undeclared (first use in this function) sundance.c:917: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:918: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:919: warning: implicit declaration of function ‘add_timer’ sundance.c:919: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c: At top level: sundance.c:927: warning: ‘struct net_device’ declared inside parameter list sundance.c:928: error: conflicting types for ‘check_duplex’ sundance.c:489: error: previous declaration of ‘check_duplex’ was here sundance.c: In function ‘check_duplex’: sundance.c:929: error: dereferencing pointer to incomplete type sundance.c:930: error: dereferencing pointer to incomplete type sundance.c:931: error: ‘struct netdev_private’ has no member named ‘phys’ sundance.c:931: warning: passing argument 1 of ‘mdio_read’ from incompatible pointer type sundance.c:932: error: ‘struct netdev_private’ has no member named ‘advertising’ sundance.c:936: error: ‘struct netdev_private’ has no member named ‘an_enable’ sundance.c:937: error: ‘struct netdev_private’ has no member named ‘full_duplex’ sundance.c:944: error: ‘struct netdev_private’ has no member named ‘full_duplex’ sundance.c:945: error: ‘struct netdev_private’ has no member named ‘full_duplex’ sundance.c:947: error: ‘KERN_INFO’ undeclared (first use in this function) sundance.c:947: error: expected ‘)’ before string constant sundance.c: In function ‘netdev_timer’: sundance.c:957: error: dereferencing pointer to incomplete type sundance.c:958: error: dereferencing pointer to incomplete type sundance.c:959: error: ‘HZ’ undeclared (first use in this function) sundance.c:962: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:962: error: expected ‘)’ before string constant sundance.c:967: warning: passing argument 1 of ‘check_duplex’ from incompatible pointer type sundance.c:968: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:968: error: ‘jiffies’ undeclared (first use in this function) sundance.c:969: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:958: warning: unused variable ‘ioaddr’ sundance.c: At top level: sundance.c:972: warning: ‘struct net_device’ declared inside parameter list sundance.c:973: error: conflicting types for ‘tx_timeout’ sundance.c:491: error: previous declaration of ‘tx_timeout’ was here sundance.c: In function ‘tx_timeout’: sundance.c:974: error: dereferencing pointer to incomplete type sundance.c:975: error: dereferencing pointer to incomplete type sundance.c:977: error: ‘KERN_WARNING’ undeclared (first use in this function) sundance.c:977: error: expected ‘)’ before string constant sundance.c:982: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:982: error: expected ‘)’ before string constant sundance.c:984: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:985: error: expected ‘)’ before ‘KERN_DEBUG’ sundance.c:987: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:992: error: dereferencing pointer to incomplete type sundance.c:999: error: dereferencing pointer to incomplete type sundance.c:999: error: ‘jiffies’ undeclared (first use in this function) sundance.c:1000: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1002: error: ‘struct netdev_private’ has no member named ‘tx_full’ sundance.c:1003: warning: implicit declaration of function ‘netif_wake_queue’ sundance.c: At top level: sundance.c:1008: warning: ‘struct net_device’ declared inside parameter list sundance.c:1009: error: conflicting types for ‘init_ring’ sundance.c:492: error: previous declaration of ‘init_ring’ was here sundance.c: In function ‘init_ring’: sundance.c:1010: error: dereferencing pointer to incomplete type sundance.c:1013: error: ‘struct netdev_private’ has no member named ‘tx_full’ sundance.c:1014: error: ‘struct netdev_private’ has no member named ‘cur_rx’ sundance.c:1014: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1015: error: ‘struct netdev_private’ has no member named ‘dirty_rx’ sundance.c:1015: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c:1017: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1017: error: dereferencing pointer to incomplete type sundance.c:1017: error: dereferencing pointer to incomplete type sundance.c:1021: error: ‘struct netdev_desc’ has no member named ‘next_desc’ sundance.c:1021: warning: implicit declaration of function ‘cpu_to_le32’ sundance.c:1021: error: ‘struct netdev_private’ has no member named ‘rx_ring_dma’ sundance.c:1023: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1024: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1030: warning: implicit declaration of function ‘dev_alloc_skb’ sundance.c:1030: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1030: warning: initialization makes pointer from integer without a cast sundance.c:1034: error: dereferencing pointer to incomplete type sundance.c:1035: warning: implicit declaration of function ‘skb_reserve’ sundance.c:1036: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1037: warning: implicit declaration of function ‘pci_map_single’ sundance.c:1037: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1037: error: dereferencing pointer to incomplete type sundance.c:1037: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1038: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function) sundance.c:1039: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1039: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1041: error: ‘struct netdev_private’ has no member named ‘dirty_rx’ sundance.c:1045: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c: At top level: sundance.c:1051: warning: ‘struct net_device’ declared inside parameter list sundance.c:1052: error: conflicting types for ‘start_tx’ sundance.c:493: error: previous declaration of ‘start_tx’ was here sundance.c: In function ‘start_tx’: sundance.c:1053: error: dereferencing pointer to incomplete type sundance.c:1056: error: dereferencing pointer to incomplete type sundance.c:1064: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1068: error: ‘struct netdev_desc’ has no member named ‘next_desc’ sundance.c:1071: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1075: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1077: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1077: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1077: error: dereferencing pointer to incomplete type sundance.c:1078: error: dereferencing pointer to incomplete type sundance.c:1079: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function) sundance.c:1080: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1080: error: dereferencing pointer to incomplete type sundance.c:1081: error: ‘struct netdev_private’ has no member named ‘last_tx’ sundance.c:1082: error: ‘struct netdev_private’ has no member named ‘last_tx’ sundance.c:1082: error: ‘struct netdev_private’ has no member named ‘tx_ring_dma’ sundance.c:1084: error: ‘struct netdev_private’ has no member named ‘last_tx’ sundance.c:1085: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1088: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1088: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c:1091: error: ‘struct netdev_private’ has no member named ‘tx_full’ sundance.c:1092: warning: implicit declaration of function ‘netif_stop_queue’ sundance.c:1098: warning: implicit declaration of function ‘inl’ sundance.c:1098: error: dereferencing pointer to incomplete type sundance.c:1099: warning: implicit declaration of function ‘virt_to_bus’ sundance.c:1100: error: dereferencing pointer to incomplete type sundance.c:1102: error: dereferencing pointer to incomplete type sundance.c:1102: error: ‘jiffies’ undeclared (first use in this function) sundance.c:1105: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:1106: error: expected ‘)’ before string constant sundance.c: At top level: sundance.c:1120: warning: ‘struct pt_regs’ declared inside parameter list sundance.c:1121: error: conflicting types for ‘intr_handler’ sundance.c:494: error: previous declaration of ‘intr_handler’ was here sundance.c: In function ‘intr_handler’: sundance.c:1127: error: dereferencing pointer to incomplete type sundance.c:1128: error: dereferencing pointer to incomplete type sundance.c:1141: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:1141: error: expected ‘)’ before string constant sundance.c:1150: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1151: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1152: warning: implicit declaration of function ‘tasklet_schedule’ sundance.c:1152: error: ‘struct netdev_private’ has no member named ‘rx_tasklet’ sundance.c:1162: error: dereferencing pointer to incomplete type sundance.c:1164: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1166: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1172: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1175: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1177: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1194: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1194: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c:1194: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c:1195: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c:1197: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1201: warning: implicit declaration of function ‘pci_unmap_single’ sundance.c:1201: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1202: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1203: error: dereferencing pointer to incomplete type sundance.c:1203: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function) sundance.c:1204: warning: implicit declaration of function ‘dev_kfree_skb_irq’ sundance.c:1207: error: ‘struct netdev_private’ has no member named ‘tx_full’ sundance.c:1207: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1207: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c:1209: error: ‘struct netdev_private’ has no member named ‘tx_full’ sundance.c:1215: warning: passing argument 1 of ‘netdev_error’ from incompatible pointer type sundance.c:1217: warning: passing argument 1 of ‘get_stats’ from incompatible pointer type sundance.c:1219: error: ‘KERN_WARNING’ undeclared (first use in this function) sundance.c:1219: error: expected ‘)’ before string constant sundance.c:1226: error: expected ‘)’ before string constant sundance.c:1228: error: ‘struct netdev_private’ has no member named ‘cur_tx’ sundance.c:1228: error: ‘struct netdev_private’ has no member named ‘dirty_tx’ sundance.c: In function ‘rx_poll’: sundance.c:1236: error: dereferencing pointer to incomplete type sundance.c:1237: error: ‘struct netdev_private’ has no member named ‘cur_rx’ sundance.c:1238: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1239: error: dereferencing pointer to incomplete type sundance.c:1245: error: ‘u32’ undeclared (first use in this function) sundance.c:1245: error: expected ‘;’ before ‘frame_status’ sundance.c:1251: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1253: error: ‘frame_status’ undeclared (first use in this function) sundance.c:1255: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:1255: error: expected ‘)’ before string constant sundance.c:1257: warning: implicit declaration of function ‘pci_dma_sync_single’ sundance.c:1257: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1257: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1258: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1258: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function) sundance.c:1263: error: expected ‘)’ before string constant sundance.c:1265: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1266: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1267: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1268: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1269: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1271: error: ‘KERN_WARNING’ undeclared (first use in this function) sundance.c:1271: error: expected ‘)’ before string constant sundance.c:1279: error: expected ‘)’ before string constant sundance.c:1286: warning: assignment makes pointer from integer without a cast sundance.c:1287: error: dereferencing pointer to incomplete type sundance.c:1289: warning: implicit declaration of function ‘eth_copy_and_sum’ sundance.c:1289: error: dereferencing pointer to incomplete type sundance.c:1290: warning: implicit declaration of function ‘skb_put’ sundance.c:1292: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1293: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1294: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1299: error: dereferencing pointer to incomplete type sundance.c:1299: warning: implicit declaration of function ‘eth_type_trans’ sundance.c:1301: warning: implicit declaration of function ‘netif_rx’ sundance.c:1302: error: dereferencing pointer to incomplete type sundance.c:1302: error: ‘jiffies’ undeclared (first use in this function) sundance.c:1307: error: ‘struct netdev_private’ has no member named ‘cur_rx’ sundance.c:1308: warning: passing argument 1 of ‘refill_rx’ from incompatible pointer type sundance.c:1309: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1317: error: ‘struct netdev_private’ has no member named ‘cur_rx’ sundance.c:1318: warning: passing argument 1 of ‘refill_rx’ from incompatible pointer type sundance.c:1321: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1322: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1323: error: ‘struct netdev_private’ has no member named ‘budget’ sundance.c:1324: error: ‘struct netdev_private’ has no member named ‘rx_tasklet’ sundance.c: At top level: sundance.c:1331: warning: ‘struct net_device’ declared inside parameter list sundance.c:1332: error: conflicting types for ‘refill_rx’ sundance.c:496: error: previous declaration of ‘refill_rx’ was here sundance.c: In function ‘refill_rx’: sundance.c:1333: error: dereferencing pointer to incomplete type sundance.c:1338: error: ‘struct netdev_private’ has no member named ‘cur_rx’ sundance.c:1338: error: ‘struct netdev_private’ has no member named ‘dirty_rx’ sundance.c:1339: error: ‘struct netdev_private’ has no member named ‘dirty_rx’ sundance.c:1339: error: ‘struct netdev_private’ has no member named ‘dirty_rx’ sundance.c:1341: error: ‘struct netdev_private’ has no member named ‘dirty_rx’ sundance.c:1343: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1343: warning: assignment makes pointer from integer without a cast sundance.c:1347: error: dereferencing pointer to incomplete type sundance.c:1349: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1350: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1350: error: dereferencing pointer to incomplete type sundance.c:1351: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1351: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function) sundance.c:1354: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1355: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1356: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c: At top level: sundance.c:1365: warning: ‘struct net_device’ declared inside parameter list sundance.c:1366: error: conflicting types for ‘netdev_error’ sundance.c:498: error: previous declaration of ‘netdev_error’ was here sundance.c: In function ‘netdev_error’: sundance.c:1367: error: dereferencing pointer to incomplete type sundance.c:1368: error: dereferencing pointer to incomplete type sundance.c:1369: error: ‘u16’ undeclared (first use in this function) sundance.c:1369: error: expected ‘;’ before ‘mii_ctl’ sundance.c:1373: error: ‘struct netdev_private’ has no member named ‘an_enable’ sundance.c:1374: error: ‘mii_advertise’ undeclared (first use in this function) sundance.c:1374: error: ‘struct netdev_private’ has no member named ‘phys’ sundance.c:1374: warning: passing argument 1 of ‘mdio_read’ from incompatible pointer type sundance.c:1375: error: ‘mii_lpa’ undeclared (first use in this function) sundance.c:1375: error: ‘struct netdev_private’ has no member named ‘phys’ sundance.c:1375: warning: passing argument 1 of ‘mdio_read’ from incompatible pointer type sundance.c:1377: error: ‘KERN_INFO’ undeclared (first use in this function) sundance.c:1377: error: expected ‘)’ before string constant sundance.c:1390: error: ‘mii_ctl’ undeclared (first use in this function) sundance.c:1390: error: ‘struct netdev_private’ has no member named ‘phys’ sundance.c:1390: warning: passing argument 1 of ‘mdio_read’ from incompatible pointer type sundance.c:1392: error: expected ‘)’ before string constant sundance.c:1397: warning: passing argument 1 of ‘check_duplex’ from incompatible pointer type sundance.c:1398: error: ‘struct netdev_private’ has no member named ‘flowctrl’ sundance.c:1403: warning: passing argument 1 of ‘get_stats’ from incompatible pointer type sundance.c:1406: error: ‘KERN_ERR’ undeclared (first use in this function) sundance.c:1406: error: expected ‘)’ before string constant sundance.c: At top level: sundance.c:1412: warning: ‘struct net_device’ declared inside parameter list sundance.c:1413: error: conflicting types for ‘get_stats’ sundance.c:500: error: previous declaration of ‘get_stats’ was here sundance.c: In function ‘get_stats’: sundance.c:1414: error: dereferencing pointer to incomplete type sundance.c:1415: error: dereferencing pointer to incomplete type sundance.c:1422: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1423: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1424: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1425: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1426: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1427: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1432: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1433: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1434: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1435: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c:1437: error: ‘struct netdev_private’ has no member named ‘stats’ sundance.c: At top level: sundance.c:1440: warning: ‘struct net_device’ declared inside parameter list sundance.c:1441: error: conflicting types for ‘set_rx_mode’ sundance.c:499: error: previous declaration of ‘set_rx_mode’ was here sundance.c: In function ‘set_rx_mode’: sundance.c:1442: error: dereferencing pointer to incomplete type sundance.c:1443: error: ‘u16’ undeclared (first use in this function) sundance.c:1443: error: expected ‘;’ before ‘mc_filter’ sundance.c:1444: error: ‘u32’ undeclared (first use in this function) sundance.c:1444: error: expected ‘;’ before ‘rx_mode’ sundance.c:1447: error: dereferencing pointer to incomplete type sundance.c:1449: error: ‘KERN_NOTICE’ undeclared (first use in this function) sundance.c:1449: error: expected ‘)’ before string constant sundance.c:1450: warning: implicit declaration of function ‘memset’ sundance.c:1450: warning: incompatible implicit declaration of built-in function ‘memset’ sundance.c:1450: error: ‘mc_filter’ undeclared (first use in this function) sundance.c:1451: error: ‘rx_mode’ undeclared (first use in this function) sundance.c:1452: error: dereferencing pointer to incomplete type sundance.c:1453: error: dereferencing pointer to incomplete type sundance.c:1455: warning: incompatible implicit declaration of built-in function ‘memset’ sundance.c:1457: error: dereferencing pointer to incomplete type sundance.c:1462: warning: incompatible implicit declaration of built-in function ‘memset’ sundance.c:1463: error: dereferencing pointer to incomplete type sundance.c:1463: error: dereferencing pointer to incomplete type sundance.c:1464: error: dereferencing pointer to incomplete type sundance.c:1465: error: dereferencing pointer to incomplete type sundance.c: At top level: sundance.c:1480: warning: ‘struct net_device’ declared inside parameter list sundance.c: In function ‘netdev_ethtool_ioctl’: sundance.c:1482: error: dereferencing pointer to incomplete type sundance.c:1483: error: ‘u32’ undeclared (first use in this function) sundance.c:1483: error: expected ‘;’ before ‘ethcmd’ sundance.c:1485: warning: implicit declaration of function ‘copy_from_user’ sundance.c:1485: error: ‘ethcmd’ undeclared (first use in this function) sundance.c:1491: warning: implicit declaration of function ‘strcpy’ sundance.c:1491: warning: incompatible implicit declaration of built-in function ‘strcpy’ sundance.c:1493: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1494: warning: implicit declaration of function ‘copy_to_user’ sundance.c: At top level: sundance.c:1504: warning: ‘struct net_device’ declared inside parameter list sundance.c:1505: error: conflicting types for ‘netdev_ioctl’ sundance.c:501: error: previous declaration of ‘netdev_ioctl’ was here sundance.c: In function ‘netdev_ioctl’: sundance.c:1510: warning: passing argument 1 of ‘netdev_ethtool_ioctl’ from incompatible pointer type sundance.c:1512: error: dereferencing pointer to incomplete type sundance.c:1516: warning: passing argument 1 of ‘mdio_read’ from incompatible pointer type sundance.c:1520: warning: implicit declaration of function ‘capable’ sundance.c:1520: error: ‘CAP_NET_ADMIN’ undeclared (first use in this function) sundance.c:1522: warning: passing argument 1 of ‘mdio_write’ from incompatible pointer type sundance.c: At top level: sundance.c:1529: warning: ‘struct net_device’ declared inside parameter list sundance.c:1530: error: conflicting types for ‘netdev_close’ sundance.c:502: error: previous declaration of ‘netdev_close’ was here sundance.c: In function ‘netdev_close’: sundance.c:1531: error: dereferencing pointer to incomplete type sundance.c:1532: error: dereferencing pointer to incomplete type sundance.c:1539: error: ‘KERN_DEBUG’ undeclared (first use in this function) sundance.c:1539: error: expected ‘)’ before string constant sundance.c:1543: error: expected ‘)’ before string constant sundance.c:1555: error: expected ‘)’ before ‘KERN_DEBUG’ sundance.c:1559: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1559: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1560: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1561: error: expected ‘)’ before ‘KERN_DEBUG’ sundance.c:1564: error: expected ‘)’ before string constant sundance.c:1571: warning: implicit declaration of function ‘free_irq’ sundance.c:1571: error: dereferencing pointer to incomplete type sundance.c:1573: warning: implicit declaration of function ‘del_timer_sync’ sundance.c:1573: error: ‘struct netdev_private’ has no member named ‘timer’ sundance.c:1577: error: ‘struct netdev_desc’ has no member named ‘status’ sundance.c:1578: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1581: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1582: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1582: error: ‘struct netdev_private’ has no member named ‘rx_buf_sz’ sundance.c:1583: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function) sundance.c:1584: warning: implicit declaration of function ‘dev_kfree_skb’ sundance.c:1591: error: ‘struct netdev_private’ has no member named ‘pci_dev’ sundance.c:1592: error: ‘struct netdev_desc’ has no member named ‘frag’ sundance.c:1592: error: dereferencing pointer to incomplete type sundance.c:1593: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function) sundance.c: At top level: sundance.c:1602: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sundance_remove1’ sundance.c:1814: error: variable ‘sundance_driver’ has initializer but incomplete type sundance.c:1815: error: unknown field ‘name’ specified in initializer sundance.c:1815: warning: excess elements in struct initializer sundance.c:1815: warning: (near initialization for ‘sundance_driver’) sundance.c:1816: error: unknown field ‘id_table’ specified in initializer sundance.c:1816: error: ‘sundance_pci_tbl’ undeclared here (not in a function) sundance.c:1816: warning: excess elements in struct initializer sundance.c:1816: warning: (near initialization for ‘sundance_driver’) sundance.c:1817: error: unknown field ‘probe’ specified in initializer sundance.c:1817: error: ‘sundance_probe1’ undeclared here (not in a function) sundance.c:1817: warning: excess elements in struct initializer sundance.c:1817: warning: (near initialization for ‘sundance_driver’) sundance.c:1818: error: unknown field ‘remove’ specified in initializer sundance.c:1818: error: ‘sundance_remove1’ undeclared here (not in a function) sundance.c:1818: warning: excess elements in struct initializer sundance.c:1818: warning: (near initialization for ‘sundance_driver’) sundance.c:1821: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sundance_init’ sundance.c:1830: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sundance_exit’ sundance.c:1835: warning: data definition has no type or storage class sundance.c:1835: warning: type defaults to ‘int’ in declaration of ‘module_init’ sundance.c:1835: warning: parameter names (without types) in function declaration sundance.c:1836: warning: data definition has no type or storage class sundance.c:1836: warning: type defaults to ‘int’ in declaration of ‘module_exit’ sundance.c:1836: warning: parameter names (without types) in function declaration make: *** [sundance.o] Error 1 $ exit Script done on Thu 21 Feb 2008 05:21:51 PM EST