QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 903|回复: 2

vnet 在fc2上面编译错误

[复制链接]
发表于 2005-9-28 14:48:12 | 显示全部楼层 |阅读模式
如题
 楼主| 发表于 2005-9-28 14:50:46 | 显示全部楼层
In file included from vnet.c:27:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from /usr/include/linux/sched.h:13,
                 from vnet.c:33:
/usr/include/linux/times.h:5: error: syntax error before "clock_t"
/usr/include/linux/times.h:7: error: syntax error before "tms_cutime"
/usr/include/linux/times.h:8: error: syntax error before "tms_cstime"
In file included from /usr/include/linux/sched.h:14,
                 from vnet.c:33:
/usr/include/linux/timex.h:148: error: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from vnet.c:33:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/signal.h:5,
                 from /usr/include/linux/sched.h:25,
                 from vnet.c:33:
/usr/include/asm/siginfo.h:26: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:38: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:41: error: syntax error before '}' token
/usr/include/asm/siginfo.h:45: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:48: error: syntax error before "_utime"
/usr/include/asm/siginfo.h:49: error: syntax error before "_stime"
/usr/include/asm/siginfo.h:62: error: syntax error before '}' token
/usr/include/asm/siginfo.h:63: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:65,
                 from vnet.c:33:
/usr/include/linux/time.h:10: error: syntax error before "time_t"
/usr/include/linux/time.h:12: error: syntax error before '}' token
/usr/include/linux/time.h:18: error: syntax error before "time_t"
/usr/include/linux/time.h:44: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:45: error: field `it_value' has incomplete type
/usr/include/linux/time.h:49: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:50: error: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:67,
                 from vnet.c:33:
/usr/include/linux/resource.h:22: error: field `ru_utime' has incomplete type
/usr/include/linux/resource.h:23: error: field `ru_stime' has incomplete type
vnet.c:34:24: linux/slab.h: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?In file included from /usr/include/linux/fcntl.h:4,
                 from vnet.c:36:
/usr/include/asm/fcntl.h:73: error: syntax error before "off_t"
/usr/include/asm/fcntl.h:75: error: syntax error before "l_pid"
/usr/include/asm/fcntl.h:81: error: syntax error before "loff_t"
/usr/include/asm/fcntl.h:83: error: syntax error before "l_pid"
vnet.c:40:26: linux/skbuff.h: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?vnet.c:42:31: linux/etherdevice.h: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?vnet.c:50:25: asm/uaccess.h: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?In file included from vnet.c:52:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
vnet.c:54:24: linux/file.h: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?In file included from vnet.c:57:
if_vnet.h:42: error: syntax error before "uid_t"
if_vnet.h:42: warning: no semicolon at end of struct or union
if_vnet.h:44: warning: type defaults to `int' in declaration of `read_wait'
if_vnet.h:44: warning: data definition has no type or storage class
if_vnet.h:55: error: syntax error before '}' token
if_vnet.h:99: error: syntax error before "uint8"
if_vnet.h:99: warning: type defaults to `int' in declaration of `uint8'
if_vnet.h:99: warning: data definition has no type or storage class
if_vnet.h:100: error: syntax error before "uint16"
if_vnet.h:100: warning: type defaults to `int' in declaration of `uint16'
if_vnet.h:100: warning: data definition has no type or storage class
if_vnet.h:101: error: syntax error before "uint32"
if_vnet.h:101: warning: type defaults to `int' in declaration of `uint32'
if_vnet.h:101: warning: data definition has no type or storage class
if_vnet.h:148: error: syntax error before "wait_queue_head_t"
if_vnet.h:148: warning: no semicolon at end of struct or union
if_vnet.h:151: warning: `struct sk_buff' declared inside parameter list
if_vnet.h:151: warning: its scope is only this definition or declaration, which is probably not what you want
if_vnet.h:155: error: syntax error before '}' token
if_vnet.h:158: error: field `nut' has incomplete type
if_vnet.h:160: error: syntax error before "uint32"
if_vnet.h:160: warning: no semicolon at end of struct or union
if_vnet.h:162: error: syntax error before "paddr"
if_vnet.h:162: warning: type defaults to `int' in declaration of `paddr'
if_vnet.h:162: warning: data definition has no type or storage class
if_vnet.h:163: error: syntax error before "ladrf"
if_vnet.h:163: warning: type defaults to `int' in declaration of `ladrf'
if_vnet.h:163: warning: data definition has no type or storage class
if_vnet.h:165: warning: `struct file' declared inside parameter list
if_vnet.h:166: warning: `struct file' declared inside parameter list
if_vnet.h:167: warning: `struct file' declared inside parameter list
if_vnet.h:168: error: syntax error before "poll_table"
if_vnet.h:168: warning: `struct file' declared inside parameter list
if_vnet.h:168: warning: function declaration isn't a prototype
if_vnet.h:176: error: field `nut' has incomplete type
if_vnet.h:192: error: field `bolt' has incomplete type
if_vnet.h:193: error: field `packetQueue' has incomplete type
if_vnet.h:194: error: syntax error before "uint32"
if_vnet.h:194: warning: no semicolon at end of struct or union
if_vnet.h:196: error: syntax error before "pollMask"
if_vnet.h:196: warning: type defaults to `int' in declaration of `pollMask'
if_vnet.h:196: warning: data definition has no type or storage class
if_vnet.h:197: error: syntax error before "clusterCount"
if_vnet.h:197: warning: type defaults to `int' in declaration of `clusterCount'
if_vnet.h:197: warning: data definition has no type or storage class
if_vnet.h:198: error: syntax error before "waitQueue"
if_vnet.h:198: warning: type defaults to `int' in declaration of `waitQueue'
if_vnet.h:198: warning: data definition has no type or storage class
if_vnet.h:199: error: conflicting types for `stats'
if_vnet.h:48: error: previous declaration of `stats'
if_vnet.h:200: error: syntax error before '}' token
if_vnet.h:203: error: field `bolt' has incomplete type
if_vnet.h:206: error: syntax error before "uid_t"
if_vnet.h:206: warning: no semicolon at end of struct or union
if_vnet.h:207: warning: type defaults to `int' in declaration of `read_wait'
if_vnet.h:207: warning: data definition has no type or storage class
if_vnet.h:211: error: conflicting types for `stats'
if_vnet.h:199: error: previous declaration of `stats'
if_vnet.h:213: error: syntax error before '}' token
vnet.c:67: error: syntax error before "vnet_nutLock"
vnet.c:67: warning: type defaults to `int' in declaration of `vnet_nutLock'
vnet.c:67: warning: data definition has no type or storage class
vnet.c:68: error: syntax error before "vnet_boltLock"
vnet.c:68: warning: type defaults to `int' in declaration of `vnet_boltLock'
vnet.c:68: warning: data definition has no type or storage class
vnet.c:78: warning: `struct file' declared inside parameter list
vnet.c:78: warning: `struct inode' declared inside parameter list
vnet.c:79: warning: `struct file' declared inside parameter list
vnet.c:81: warning: `struct file' declared inside parameter list
vnet.c:81: warning: `struct inode' declared inside parameter list
vnet.c:82: warning: `struct file' declared inside parameter list
vnet.c:82: warning: `struct inode' declared inside parameter list
vnet.c:83: error: syntax error before "poll_table"
vnet.c:83: warning: `struct file' declared inside parameter list
vnet.c:83: warning: function declaration isn't a prototype
vnet.c:84: error: syntax error before "loff_t"
vnet.c:84: warning: `struct file' declared inside parameter list
vnet.c:84: warning: function declaration isn't a prototype
vnet.c:88: error: syntax error before "loff_t"
vnet.c:88: warning: `struct file' declared inside parameter list
vnet.c:88: warning: function declaration isn't a prototype
vnet.c:98: warning: `struct sk_buff' declared inside parameter list
vnet.c:99: warning: `struct sk_buff' declared inside parameter list
vnet.c:100: warning: `struct file' declared inside parameter list
vnet.c:100: warning: `struct inode' declared inside parameter list
vnet.c:102: error: syntax error before "off_t"
vnet.c:102: warning: function declaration isn't a prototype
vnet.c:111: warning: `struct file' declared inside parameter list
vnet.c:115: error: syntax error before "poll_table"
vnet.c:115: warning: `struct file' declared inside parameter list
vnet.c:115: warning: function declaration isn't a prototype
vnet.c:117: warning: `struct file' declared inside parameter list
vnet.c:118: warning: `struct sk_buff' declared inside parameter list
vnet.c:120: warning: `struct file' declared inside parameter list
vnet.c:122: error: syntax error before "off_t"
vnet.c:122: warning: function declaration isn't a prototype
vnet.c:144: warning: `struct sk_buff' declared inside parameter list
vnet.c:178: error: syntax error before '*' token
vnet.c:180: warning: function declaration isn't a prototype
vnet.c: In function `vnet_multicastfilter':
vnet.c:181: error: syntax error before "hashcode"
vnet.c:188: error: `destAddr' undeclared (first use in this function)
vnet.c:188: error: (Each undeclared identifier is reported only once
vnet.c:188: error: for each function it appears in.)
vnet.c:188: warning: left-hand operand of comma expression has no effect
vnet.c:192: error: `hashcode' undeclared (first use in this function)
vnet.c: At top level:
vnet.c:206: error: syntax error before '*' token
vnet.c:210: warning: function declaration isn't a prototype
vnet.c: In function `vnet_packetmatch':
vnet.c:211: error: syntax error before "broadcast"
vnet.c: In function `vnet_procfs_makeentry':
vnet.c:232: warning: implicit declaration of function `create_proc_entry'
vnet.c:232: warning: assignment makes pointer from integer without a cast
vnet.c: In function `vnet_procfs_removeentry':
vnet.c:264: warning: implicit declaration of function `remove_proc_entry'
vnet.c:264: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_procfs_cleanup':
vnet.c:270: error: `proc_root' undeclared (first use in this function)
vnet.c: In function `vnet_procfs_init':
vnet.c:277: error: `proc_root' undeclared (first use in this function)
vnet.c: In function `vnet_hostif_open':
vnet.c:287: warning: implicit declaration of function `netif_start_queue'
vnet.c: In function `vnet_hostif_close':
vnet.c:294: warning: implicit declaration of function `netif_stop_queue'
vnet.c: At top level:
vnet.c:298: warning: `struct sk_buff' declared inside parameter list
vnet.c:299: error: conflicting types for `vnet_hostif_recv'
vnet.c:99: error: previous declaration of `vnet_hostif_recv'
vnet.c: In function `vnet_hostif_recv':
vnet.c:300: error: dereferencing pointer to incomplete type
vnet.c:302: error: dereferencing pointer to incomplete type
vnet.c:302: error: dereferencing pointer to incomplete type
vnet.c:303: error: dereferencing pointer to incomplete type
vnet.c:303: warning: implicit declaration of function `eth_type_trans'
vnet.c:303: error: dereferencing pointer to incomplete type
vnet.c:304: warning: implicit declaration of function `netif_rx_ni'
vnet.c:305: error: dereferencing pointer to incomplete type
vnet.c: At top level:
vnet.c:311: warning: `struct sk_buff' declared inside parameter list
vnet.c:312: error: conflicting types for `vnet_hostif_xmit'
vnet.c:98: error: previous declaration of `vnet_hostif_xmit'
vnet.c: In function `vnet_hostif_xmit':
vnet.c:313: error: dereferencing pointer to incomplete type
vnet.c:316: warning: implicit declaration of function `printk'
vnet.c:316: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:316: error: syntax error before string constant
vnet.c:319: error: dereferencing pointer to incomplete type
vnet.c:328: error: dereferencing pointer to incomplete type
vnet.c:329: error: dereferencing pointer to incomplete type
vnet.c:334: error: dereferencing pointer to incomplete type
vnet.c:336: error: dereferencing pointer to incomplete type
vnet.c:337: error: syntax error before string constant
vnet.c:341: error: dereferencing pointer to incomplete type
vnet.c:342: warning: implicit declaration of function `kfree_skb'
vnet.c: In function `vnet_hostif_mclist':
vnet.c:350: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:350: error: syntax error before string constant
vnet.c: At top level:
vnet.c:356: error: syntax error before "off_t"
vnet.c:360: warning: function declaration isn't a prototype
vnet.c: In function `vnet_hostif_procread':
vnet.c:361: error: `data' undeclared (first use in this function)
vnet.c:369: error: dereferencing pointer to incomplete type
vnet.c:369: error: `page' undeclared (first use in this function)
vnet.c:371: warning: implicit declaration of function `sprintf'
vnet.c:373: error: `start' undeclared (first use in this function)
vnet.c:374: error: `eof' undeclared (first use in this function)
vnet.c: In function `vnet_hostif_stats':
vnet.c:381: error: dereferencing pointer to incomplete type
vnet.c:382: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hostif_init':
vnet.c:388: error: dereferencing pointer to incomplete type
vnet.c:390: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:390: error: syntax error before string constant
vnet.c:390: error: dereferencing pointer to incomplete type
vnet.c:390: warning: left-hand operand of comma expression has no effect
vnet.c:390: error: syntax error before ')' token
vnet.c:393: error: dereferencing pointer to incomplete type
vnet.c:394: error: dereferencing pointer to incomplete type
vnet.c:395: error: dereferencing pointer to incomplete type
vnet.c:396: error: dereferencing pointer to incomplete type
vnet.c:398: error: dereferencing pointer to incomplete type
vnet.c:401: error: dereferencing pointer to incomplete type
vnet.c:403: error: `u16' undeclared (first use in this function)
vnet.c:403: error: syntax error before ')' token
vnet.c:404: warning: implicit declaration of function `get_random_bytes'
vnet.c:404: error: dereferencing pointer to incomplete type
vnet.c:405: warning: implicit declaration of function `ether_setup'
vnet.c:406: warning: implicit declaration of function `memcpy'
vnet.c:406: error: dereferencing pointer to incomplete type
vnet.c:406: error: dereferencing pointer to incomplete type
vnet.c:409: error: syntax error before string constant
vnet.c: At top level:
vnet.c:419: error: syntax error before "poll_table"
vnet.c:419: warning: `struct file' declared inside parameter list
vnet.c:420: warning: function declaration isn't a prototype
vnet.c: In function `vnet_chr_poll':
vnet.c:421: error: `file' undeclared (first use in this function)
vnet.c:428: error: dereferencing pointer to incomplete type
vnet.c:429: error: `wait' undeclared (first use in this function)
vnet.c: In function `vnet_get_user':
vnet.c:437: warning: implicit declaration of function `__constant_htons'
vnet.c:441: error: dereferencing pointer to incomplete type
vnet.c:445: warning: implicit declaration of function `memcpy_fromiovec'
vnet.c:448: warning: implicit declaration of function `alloc_skb'
vnet.c:448: error: `GFP_KERNEL' undeclared (first use in this function)
vnet.c:448: warning: assignment makes pointer from integer without a cast
vnet.c:449: error: dereferencing pointer to incomplete type
vnet.c:453: warning: implicit declaration of function `skb_reserve'
vnet.c:454: warning: implicit declaration of function `skb_put'
vnet.c:456: error: dereferencing pointer to incomplete type
vnet.c:456: error: dereferencing pointer to incomplete type
vnet.c:457: error: dereferencing pointer to incomplete type
vnet.c:459: error: dereferencing pointer to incomplete type
vnet.c:459: error: dereferencing pointer to incomplete type
vnet.c:460: error: dereferencing pointer to incomplete type
vnet.c:463: error: dereferencing pointer to incomplete type
vnet.c:463: error: dereferencing pointer to incomplete type
vnet.c:467: error: dereferencing pointer to incomplete type
vnet.c:468: error: dereferencing pointer to incomplete type
vnet.c:468: error: `CHECKSUM_UNNECESSARY' undeclared (first use in this function)
vnet.c:472: error: dereferencing pointer to incomplete type
vnet.c:473: error: dereferencing pointer to incomplete type
vnet.c: At top level:
vnet.c:481: error: syntax error before "loff_t"
vnet.c:481: warning: `struct file' declared inside parameter list
vnet.c:482: warning: function declaration isn't a prototype
vnet.c: In function `vnet_chr_write':
vnet.c:483: error: `file' undeclared (first use in this function)
vnet.c:486: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:486: error: syntax error before string constant
vnet.c:489: error: dereferencing pointer to incomplete type
vnet.c:490: error: `buf' undeclared (first use in this function)
vnet.c:490: error: `count' undeclared (first use in this function)
vnet.c: At top level:
vnet.c:496: warning: `struct sk_buff' declared inside parameter list
vnet.c: In function `vnet_put_user':
vnet.c:498: error: dereferencing pointer to incomplete type
vnet.c:501: error: dereferencing pointer to incomplete type
vnet.c:505: error: dereferencing pointer to incomplete type
vnet.c:510: warning: implicit declaration of function `memcpy_toiovec'
vnet.c:514: error: dereferencing pointer to incomplete type
vnet.c:514: error: dereferencing pointer to incomplete type
vnet.c:516: warning: implicit declaration of function `skb_copy_datagram_iovec'
vnet.c:519: error: dereferencing pointer to incomplete type
vnet.c:520: error: dereferencing pointer to incomplete type
vnet.c: At top level:
vnet.c:528: error: syntax error before "loff_t"
vnet.c:528: warning: `struct file' declared inside parameter list
vnet.c:529: warning: function declaration isn't a prototype
vnet.c: In function `vnet_chr_read':
vnet.c:530: error: `file' undeclared (first use in this function)
vnet.c:533: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:533: error: syntax error before string constant
vnet.c:536: error: dereferencing pointer to incomplete type
vnet.c:537: error: `buf' undeclared (first use in this function)
vnet.c:537: error: `count' undeclared (first use in this function)
vnet.c: In function `vnet_hostif_free':
vnet.c:546: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:546: error: syntax error before string constant
vnet.c:547: warning: implicit declaration of function `unregister_netdev'
vnet.c:547: error: dereferencing pointer to incomplete type
vnet.c:548: error: dereferencing pointer to incomplete type
vnet.c:549: error: dereferencing pointer to incomplete type
vnet.c:551: warning: implicit declaration of function `kfree'
vnet.c:552: error: syntax error before string constant
vnet.c: At top level:
vnet.c:555: warning: `struct file' declared inside parameter list
vnet.c:555: warning: `struct inode' declared inside parameter list
vnet.c:556: error: conflicting types for `vnet_hostif_create'
vnet.c:100: error: previous declaration of `vnet_hostif_create'
vnet.c: In function `vnet_hostif_create':
vnet.c:557: error: dereferencing pointer to incomplete type
vnet.c:567: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:567: error: syntax error before string constant
vnet.c:569: error: `KERN_DEBUG' undeclared (first use in this function)
vnet.c:569: error: syntax error before string constant
vnet.c:573: error: dereferencing pointer to incomplete type
vnet.c:574: error: dereferencing pointer to incomplete type
vnet.c:580: error: syntax error before string constant
vnet.c:583: warning: implicit declaration of function `__dev_get_by_name'
vnet.c:583: warning: assignment makes pointer from integer without a cast
vnet.c:586: error: dereferencing pointer to incomplete type
vnet.c:587: error: dereferencing pointer to incomplete type
vnet.c:603: warning: implicit declaration of function `kmalloc'
vnet.c:603: error: invalid application of `sizeof' to an incomplete type
vnet.c:603: error: `GFP_KERNEL' undeclared (first use in this function)
vnet.c:603: warning: assignment makes pointer from integer without a cast
vnet.c:605: warning: implicit declaration of function `memset'
vnet.c:605: error: invalid application of `sizeof' to an incomplete type
vnet.c:611: error: dereferencing pointer to incomplete type
vnet.c:612: error: dereferencing pointer to incomplete type
vnet.c:613: error: dereferencing pointer to incomplete type
vnet.c:614: error: dereferencing pointer to incomplete type
vnet.c:615: error: dereferencing pointer to incomplete type
vnet.c:615: error: dereferencing pointer to incomplete type
vnet.c:616: error: dereferencing pointer to incomplete type
vnet.c:617: error: dereferencing pointer to incomplete type
vnet.c:618: error: dereferencing pointer to incomplete type
vnet.c:619: error: dereferencing pointer to incomplete type
vnet.c:620: error: dereferencing pointer to incomplete type
vnet.c:621: error: dereferencing pointer to incomplete type
vnet.c:622: warning: implicit declaration of function `init_waitqueue_head'
vnet.c:622: error: dereferencing pointer to incomplete type
vnet.c:623: error: dereferencing pointer to incomplete type
vnet.c:624: error: dereferencing pointer to incomplete type
vnet.c:625: error: dereferencing pointer to incomplete type
vnet.c:626: error: dereferencing pointer to incomplete type
vnet.c:632: error: dereferencing pointer to incomplete type
vnet.c:632: error: dereferencing pointer to incomplete type
vnet.c:633: error: dereferencing pointer to incomplete type
vnet.c:633: error: dereferencing pointer to incomplete type
vnet.c:635: error: dereferencing pointer to incomplete type
vnet.c:636: error: dereferencing pointer to incomplete type
vnet.c:637: error: dereferencing pointer to incomplete type
vnet.c:638: error: dereferencing pointer to incomplete type
vnet.c:644: error: dereferencing pointer to incomplete type
vnet.c:652: warning: implicit declaration of function `dev_alloc_name'
vnet.c:652: error: dereferencing pointer to incomplete type
vnet.c:654: warning: implicit declaration of function `register_netdevice'
vnet.c:654: error: dereferencing pointer to incomplete type
vnet.c:662: error: syntax error before string constant
vnet.c:662: error: dereferencing pointer to incomplete type
vnet.c:662: warning: left-hand operand of comma expression has no effect
vnet.c:662: error: syntax error before ')' token
vnet.c:665: error: dereferencing pointer to incomplete type
vnet.c:666: error: dereferencing pointer to incomplete type
vnet.c:668: warning: implicit declaration of function `strcpy'
vnet.c:668: error: dereferencing pointer to incomplete type
vnet.c:672: warning: implicit declaration of function `minor'
vnet.c:672: error: dereferencing pointer to incomplete type
vnet.c:675: error: syntax error before string constant
vnet.c:675: warning: left-hand operand of comma expression has no effect
vnet.c:675: error: syntax error before ')' token
vnet.c:678: error: dereferencing pointer to incomplete type
vnet.c:679: error: `KERN_ERR' undeclared (first use in this function)
vnet.c:679: error: syntax error before string constant
vnet.c:686: error: dereferencing pointer to incomplete type
vnet.c:687: error: syntax error before string constant
vnet.c:692: error: syntax error before string constant
vnet.c:695: error: dereferencing pointer to incomplete type
vnet.c:697: error: syntax error before string constant
vnet.c:701: error: syntax error before string constant
vnet.c:706: error: dereferencing pointer to incomplete type
vnet.c:708: error: syntax error before string constant
vnet.c:708: warning: left-hand operand of comma expression has no effect
vnet.c:708: error: syntax error before ')' token
vnet.c:711: error: dereferencing pointer to incomplete type
vnet.c:711: error: dereferencing pointer to incomplete type
vnet.c:715: error: dereferencing pointer to incomplete type
vnet.c:716: error: dereferencing pointer to incomplete type
vnet.c:719: error: syntax error before string constant
vnet.c:724: error: syntax error before string constant
vnet.c: At top level:
vnet.c:729: warning: `struct file' declared inside parameter list
vnet.c:729: warning: `struct inode' declared inside parameter list
vnet.c:730: error: conflicting types for `vnet_chr_ioctl'
vnet.c:81: error: previous declaration of `vnet_chr_ioctl'
vnet.c: In function `vnet_chr_ioctl':
vnet.c:732: error: dereferencing pointer to incomplete type
vnet.c:733: error: syntax error before "paddr"
vnet.c:738: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:738: error: syntax error before string constant
vnet.c:741: error: syntax error before string constant
vnet.c:748: warning: implicit declaration of function `copy_from_user'
vnet.c:751: warning: implicit declaration of function `rtnl_lock'
vnet.c:752: warning: passing arg 1 of `vnet_hostif_create' from incompatible pointer type
vnet.c:752: warning: passing arg 2 of `vnet_hostif_create' from incompatible pointer type
vnet.c:753: warning: implicit declaration of function `rtnl_unlock'
vnet.c:755: warning: implicit declaration of function `copy_to_user'
vnet.c:760: warning: implicit declaration of function `verify_area'
vnet.c:760: error: `VERIFY_WRITE' undeclared (first use in this function)
vnet.c:764: error: dereferencing pointer to incomplete type
vnet.c:768: error: `VERIFY_READ' undeclared (first use in this function)
vnet.c:773: error: dereferencing pointer to incomplete type
vnet.c:782: warning: implicit declaration of function `put_user'
vnet.c:782: error: dereferencing pointer to incomplete type
vnet.c:782: error: syntax error before ')' token
vnet.c:786: warning: implicit declaration of function `get_user'
vnet.c:786: error: dereferencing pointer to incomplete type
vnet.c:786: error: syntax error before ')' token
vnet.c:787: error: dereferencing pointer to incomplete type
vnet.c:787: error: dereferencing pointer to incomplete type
vnet.c:794: error: syntax error before string constant
vnet.c: At top level:
vnet.c:801: warning: `struct file' declared inside parameter list
vnet.c:802: error: conflicting types for `vnet_chr_fasync'
vnet.c:79: error: previous declaration of `vnet_chr_fasync'
vnet.c: In function `vnet_chr_fasync':
vnet.c:803: error: dereferencing pointer to incomplete type
vnet.c:809: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:809: error: syntax error before string constant
vnet.c:809: error: dereferencing pointer to incomplete type
vnet.c:809: warning: left-hand operand of comma expression has no effect
vnet.c:809: warning: left-hand operand of comma expression has no effect
vnet.c:809: error: syntax error before ')' token
vnet.c:811: warning: implicit declaration of function `fasync_helper'
vnet.c:811: error: dereferencing pointer to incomplete type
vnet.c:815: error: dereferencing pointer to incomplete type
vnet.c:816: error: dereferencing pointer to incomplete type
vnet.c:817: error: dereferencing pointer to incomplete type
vnet.c:817: error: `current' undeclared (first use in this function)
vnet.c:818: error: dereferencing pointer to incomplete type
vnet.c:819: error: dereferencing pointer to incomplete type
vnet.c:822: error: dereferencing pointer to incomplete type
vnet.c: At top level:
vnet.c:827: warning: `struct file' declared inside parameter list
vnet.c:827: warning: `struct inode' declared inside parameter list
vnet.c:828: error: conflicting types for `vnet_chr_open'
vnet.c:82: error: previous declaration of `vnet_chr_open'
vnet.c: In function `vnet_chr_open':
vnet.c:834: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:834: error: syntax error before string constant
vnet.c:834: error: `current' undeclared (first use in this function)
vnet.c:834: warning: left-hand operand of comma expression has no effect
vnet.c:834: warning: left-hand operand of comma expression has no effect
vnet.c:834: error: syntax error before ')' token
vnet.c:835: error: syntax error before string constant
vnet.c:835: warning: implicit declaration of function `atomic_read'
vnet.c:835: error: dereferencing pointer to incomplete type
vnet.c:835: warning: left-hand operand of comma expression has no effect
vnet.c:835: warning: left-hand operand of comma expression has no effect
vnet.c:835: error: syntax error before ')' token
vnet.c:837: error: dereferencing pointer to incomplete type
vnet.c:841: error: syntax error before string constant
vnet.c:843: error: dereferencing pointer to incomplete type
vnet.c:846: error: syntax error before string constant
vnet.c:846: warning: left-hand operand of comma expression has no effect
vnet.c:846: error: syntax error before ')' token
vnet.c:849: error: dereferencing pointer to incomplete type
vnet.c:855: error: dereferencing pointer to incomplete type
vnet.c:859: error: syntax error before string constant
vnet.c:862: error: dereferencing pointer to incomplete type
vnet.c:867: error: syntax error before string constant
vnet.c:872: error: dereferencing pointer to incomplete type
vnet.c:874: error: syntax error before string constant
vnet.c:874: warning: left-hand operand of comma expression has no effect
vnet.c:874: error: syntax error before ')' token
vnet.c: At top level:
vnet.c:879: warning: `struct file' declared inside parameter list
vnet.c:879: warning: `struct inode' declared inside parameter list
vnet.c:880: error: conflicting types for `vnet_chr_close'
vnet.c:78: error: previous declaration of `vnet_chr_close'
vnet.c: In function `vnet_chr_close':
vnet.c:882: error: dereferencing pointer to incomplete type
vnet.c:888: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:888: error: syntax error before string constant
vnet.c:891: error: `KERN_DEBUG' undeclared (first use in this function)
vnet.c:891: error: syntax error before string constant
vnet.c:894: error: dereferencing pointer to incomplete type
vnet.c:896: error: dereferencing pointer to incomplete type
vnet.c:897: error: dereferencing pointer to incomplete type
vnet.c:901: error: dereferencing pointer to incomplete type
vnet.c:903: error: dereferencing pointer to incomplete type
vnet.c:904: error: dereferencing pointer to incomplete type
vnet.c:912: error: syntax error before string constant
vnet.c: At top level:
vnet.c:924: warning: `struct sk_buff' declared inside parameter list
vnet.c:925: error: conflicting types for `vnet_guestif_recv'
vnet.c:118: error: previous declaration of `vnet_guestif_recv'
vnet.c: In function `vnet_guestif_recv':
vnet.c:927: error: dereferencing pointer to incomplete type
vnet.c:928: error: `dest' undeclared (first use in this function)
vnet.c:928: error: dereferencing pointer to incomplete type
vnet.c:929: error: `src' undeclared (first use in this function)
vnet.c:929: error: dereferencing pointer to incomplete type
vnet.c:931: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:931: error: syntax error before string constant
vnet.c:934: error: dereferencing pointer to incomplete type
vnet.c:935: error: dereferencing pointer to incomplete type
vnet.c:940: error: dereferencing pointer to incomplete type
vnet.c:941: error: dereferencing pointer to incomplete type
vnet.c:942: error: dereferencing pointer to incomplete type
vnet.c:943: error: syntax error before string constant
vnet.c:944: error: syntax error before string constant
vnet.c:944: warning: left-hand operand of comma expression has no effect
vnet.c:944: warning: left-hand operand of comma expression has no effect
vnet.c:944: warning: left-hand operand of comma expression has no effect
vnet.c:944: warning: left-hand operand of comma expression has no effect
vnet.c:944: warning: left-hand operand of comma expression has no effect
vnet.c:944: warning: left-hand operand of comma expression has no effect
vnet.c:944: error: syntax error before ')' token
vnet.c:945: error: syntax error before string constant
vnet.c:945: warning: left-hand operand of comma expression has no effect
vnet.c:945: warning: left-hand operand of comma expression has no effect
vnet.c:945: warning: left-hand operand of comma expression has no effect
vnet.c:945: warning: left-hand operand of comma expression has no effect
vnet.c:945: warning: left-hand operand of comma expression has no effect
vnet.c:945: warning: left-hand operand of comma expression has no effect
vnet.c:945: error: syntax error before ')' token
vnet.c:946: error: dereferencing pointer to incomplete type
vnet.c:950: warning: implicit declaration of function `skb_queue_len'
vnet.c:950: error: dereferencing pointer to incomplete type
vnet.c:951: error: dereferencing pointer to incomplete type
vnet.c:955: error: dereferencing pointer to incomplete type
vnet.c:963: warning: implicit declaration of function `skb_queue_tail'
vnet.c:963: error: dereferencing pointer to incomplete type
vnet.c:981: warning: implicit declaration of function `wake_up'
vnet.c:981: error: dereferencing pointer to incomplete type
vnet.c:986: warning: implicit declaration of function `dev_kfree_skb'
vnet.c: At top level:
vnet.c:991: warning: `struct file' declared inside parameter list
vnet.c:992: error: conflicting types for `vnet_guestif_read'
vnet.c:117: error: previous declaration of `vnet_guestif_read'
vnet.c: In function `vnet_guestif_read':
vnet.c:994: error: dereferencing pointer to incomplete type
vnet.c:998: warning: implicit declaration of function `DECLARE_WAITQUEUE'
vnet.c:998: error: `wait' undeclared (first use in this function)
vnet.c:998: error: `current' undeclared (first use in this function)
vnet.c:1001: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1001: error: syntax error before string constant
vnet.c:1004: warning: implicit declaration of function `add_wait_queue'
vnet.c:1004: error: dereferencing pointer to incomplete type
vnet.c:1007: warning: implicit declaration of function `mb'
vnet.c:1008: warning: implicit declaration of function `skb_peek'
vnet.c:1008: error: dereferencing pointer to incomplete type
vnet.c:1008: warning: assignment makes pointer from integer without a cast
vnet.c:1009: error: dereferencing pointer to incomplete type
vnet.c:1015: warning: implicit declaration of function `skb_dequeue'
vnet.c:1015: error: dereferencing pointer to incomplete type
vnet.c:1015: warning: assignment makes pointer from integer without a cast
vnet.c:1025: error: dereferencing pointer to incomplete type
vnet.c:1030: warning: implicit declaration of function `signal_pending'
vnet.c:1033: warning: implicit declaration of function `schedule'
vnet.c:1036: warning: implicit declaration of function `remove_wait_queue'
vnet.c:1036: error: dereferencing pointer to incomplete type
vnet.c:1043: error: dereferencing pointer to incomplete type
vnet.c:1045: error: dereferencing pointer to incomplete type
vnet.c:1045: error: dereferencing pointer to incomplete type
vnet.c:1046: error: dereferencing pointer to incomplete type
vnet.c:1050: error: syntax error before string constant
vnet.c: At top level:
vnet.c:1057: warning: `struct file' declared inside parameter list
vnet.c:1058: error: conflicting types for `vnet_guestif_write'
vnet.c:120: error: previous declaration of `vnet_guestif_write'
vnet.c: In function `vnet_guestif_write':
vnet.c:1059: error: dereferencing pointer to incomplete type
vnet.c:1064: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1064: error: syntax error before string constant
vnet.c:1077: warning: implicit declaration of function `dev_alloc_skb'
vnet.c:1077: warning: assignment makes pointer from integer without a cast
vnet.c:1096: error: dereferencing pointer to incomplete type
vnet.c:1101: error: dereferencing pointer to incomplete type
vnet.c:1102: error: dereferencing pointer to incomplete type
vnet.c:1114: error: dereferencing pointer to incomplete type
vnet.c:1116: error: syntax error before string constant
vnet.c: At top level:
vnet.c:1122: warning: `struct sk_buff' declared inside parameter list
vnet.c: In function `vnet_nut_recv':
vnet.c:1124: error: dereferencing pointer to incomplete type
vnet.c:1124: error: dereferencing pointer to incomplete type
vnet.c:1125: error: dereferencing pointer to incomplete type
vnet.c:1125: error: dereferencing pointer to incomplete type
vnet.c: At top level:
vnet.c:1135: warning: `struct file' declared inside parameter list
vnet.c:1136: error: conflicting types for `vnet_guestif_ioctl'
vnet.c:111: error: previous declaration of `vnet_guestif_ioctl'
vnet.c: In function `vnet_guestif_ioctl':
vnet.c:1137: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1137: error: syntax error before string constant
vnet.c: At top level:
vnet.c:1145: error: syntax error before "poll_table"
vnet.c:1145: warning: `struct file' declared inside parameter list
vnet.c:1146: warning: function declaration isn't a prototype
vnet.c: In function `vnet_guestif_poll':
vnet.c:1147: error: `bolt' undeclared (first use in this function)
vnet.c:1149: warning: implicit declaration of function `poll_wait'
vnet.c:1149: error: `filp' undeclared (first use in this function)
vnet.c:1149: error: dereferencing pointer to incomplete type
vnet.c:1149: error: `wait' undeclared (first use in this function)
vnet.c:1150: warning: implicit declaration of function `skb_queue_empty'
vnet.c:1150: error: dereferencing pointer to incomplete type
vnet.c: At top level:
vnet.c:1161: error: syntax error before "off_t"
vnet.c:1165: warning: function declaration isn't a prototype
vnet.c: In function `vnet_guestif_procread':
vnet.c:1166: error: `data' undeclared (first use in this function)
vnet.c:1181: error: dereferencing pointer to incomplete type
vnet.c:1181: error: `page' undeclared (first use in this function)
vnet.c:1187: error: dereferencing pointer to incomplete type
vnet.c:1188: error: dereferencing pointer to incomplete type
vnet.c:1189: error: dereferencing pointer to incomplete type
vnet.c:1192: error: dereferencing pointer to incomplete type
vnet.c:1193: error: dereferencing pointer to incomplete type
vnet.c:1194: error: dereferencing pointer to incomplete type
vnet.c:1198: error: `start' undeclared (first use in this function)
vnet.c:1199: error: `eof' undeclared (first use in this function)
vnet.c: In function `vnet_guestif_create':
vnet.c:1211: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1211: error: syntax error before string constant
vnet.c:1213: error: invalid application of `sizeof' to an incomplete type
vnet.c:1213: error: `GFP_KERNEL' undeclared (first use in this function)
vnet.c:1222: error: dereferencing pointer to incomplete type
vnet.c:1223: error: dereferencing pointer to incomplete type
vnet.c:1224: error: dereferencing pointer to incomplete type
vnet.c:1225: error: dereferencing pointer to incomplete type
vnet.c:1226: error: dereferencing pointer to incomplete type
vnet.c:1226: error: dereferencing pointer to incomplete type
vnet.c:1227: error: dereferencing pointer to incomplete type
vnet.c:1228: error: dereferencing pointer to incomplete type
vnet.c:1229: error: dereferencing pointer to incomplete type
vnet.c:1230: error: dereferencing pointer to incomplete type
vnet.c:1231: error: dereferencing pointer to incomplete type
vnet.c:1232: error: dereferencing pointer to incomplete type
vnet.c:1233: error: dereferencing pointer to incomplete type
vnet.c:1235: error: dereferencing pointer to incomplete type
vnet.c:1236: error: dereferencing pointer to incomplete type
vnet.c:1237: error: dereferencing pointer to incomplete type
vnet.c:1238: error: dereferencing pointer to incomplete type
vnet.c:1239: error: dereferencing pointer to incomplete type
vnet.c:1240: error: dereferencing pointer to incomplete type
vnet.c:1241: error: dereferencing pointer to incomplete type
vnet.c:1247: error: dereferencing pointer to incomplete type
vnet.c:1248: error: dereferencing pointer to incomplete type
vnet.c:1253: error: dereferencing pointer to incomplete type
vnet.c:1254: error: dereferencing pointer to incomplete type
vnet.c:1261: error: dereferencing pointer to incomplete type
vnet.c:1264: error: dereferencing pointer to incomplete type
vnet.c:1264: error: dereferencing pointer to incomplete type
vnet.c:1265: error: dereferencing pointer to incomplete type
vnet.c:1265: error: dereferencing pointer to incomplete type
vnet.c:1267: error: dereferencing pointer to incomplete type
vnet.c:1268: error: dereferencing pointer to incomplete type
vnet.c:1269: error: dereferencing pointer to incomplete type
vnet.c:1270: error: dereferencing pointer to incomplete type
vnet.c:1272: warning: implicit declaration of function `skb_queue_head_init'
vnet.c:1272: error: dereferencing pointer to incomplete type
vnet.c:1273: error: dereferencing pointer to incomplete type
vnet.c:1275: error: dereferencing pointer to incomplete type
vnet.c:1279: error: syntax error before string constant
vnet.c: In function `vnet_guestif_free':
vnet.c:1304: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1304: error: syntax error before string constant
vnet.c:1307: error: dereferencing pointer to incomplete type
vnet.c:1307: warning: assignment makes pointer from integer without a cast
vnet.c:1321: error: dereferencing pointer to incomplete type
vnet.c:1322: error: dereferencing pointer to incomplete type
vnet.c:1327: error: syntax error before string constant
vnet.c: In function `vnet_nut_release':
vnet.c:1335: warning: implicit declaration of function `spin_lock_bh'
vnet.c:1337: error: dereferencing pointer to incomplete type
vnet.c:1338: error: dereferencing pointer to incomplete type
vnet.c:1340: error: dereferencing pointer to incomplete type
vnet.c:1341: error: dereferencing pointer to incomplete type
vnet.c:1343: error: dereferencing pointer to incomplete type
vnet.c:1344: error: dereferencing pointer to incomplete type
vnet.c:1347: warning: implicit declaration of function `spin_unlock_bh'
vnet.c: In function `vnet_bolt_addtolist':
vnet.c:1353: warning: implicit declaration of function `spin_lock'
vnet.c:1355: error: dereferencing pointer to incomplete type
vnet.c:1358: warning: implicit declaration of function `spin_unlock'
vnet.c: In function `vnet_bolt_removefromlist':
vnet.c:1367: error: dereferencing pointer to incomplete type
vnet.c:1369: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_bolt_free':
vnet.c:1379: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1379: error: syntax error before string constant
vnet.c: In function `vnet_nut_print':
vnet.c:1391: error: dereferencing pointer to incomplete type
vnet.c:1394: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_bolt_print':
vnet.c:1404: error: dereferencing pointer to incomplete type
vnet.c:1409: error: dereferencing pointer to incomplete type
vnet.c:1409: error: dereferencing pointer to incomplete type
vnet.c:1409: error: dereferencing pointer to incomplete type
vnet.c:1410: error: dereferencing pointer to incomplete type
vnet.c:1410: error: dereferencing pointer to incomplete type
vnet.c:1410: error: dereferencing pointer to incomplete type
vnet.c:1413: error: dereferencing pointer to incomplete type
vnet.c:1413: error: dereferencing pointer to incomplete type
vnet.c:1413: error: dereferencing pointer to incomplete type
vnet.c:1414: error: dereferencing pointer to incomplete type
vnet.c:1414: error: dereferencing pointer to incomplete type
vnet.c:1414: error: dereferencing pointer to incomplete type
vnet.c:1415: error: dereferencing pointer to incomplete type
vnet.c:1415: error: dereferencing pointer to incomplete type
vnet.c:1419: error: dereferencing pointer to incomplete type
vnet.c:1423: error: dereferencing pointer to incomplete type
vnet.c:1427: error: dereferencing pointer to incomplete type
vnet.c:1431: error: dereferencing pointer to incomplete type
vnet.c:1435: error: dereferencing pointer to incomplete type
vnet.c:1439: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hub_grabnuts':
vnet.c:1459: error: dereferencing pointer to incomplete type
vnet.c:1460: error: dereferencing pointer to incomplete type
vnet.c:1461: error: dereferencing pointer to incomplete type
vnet.c:1471: error: dereferencing pointer to incomplete type
vnet.c:1471: error: dereferencing pointer to incomplete type
vnet.c:1476: error: dereferencing pointer to incomplete type
vnet.c:1477: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hub_getattachednuts':
vnet.c:1494: error: dereferencing pointer to incomplete type
vnet.c:1498: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hub_isbridged':
vnet.c:1503: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1503: error: syntax error before string constant
vnet.c: In function `vnet_isbridged':
vnet.c:1510: error: dereferencing pointer to incomplete type
vnet.c:1510: error: dereferencing pointer to incomplete type
vnet.c:1511: error: dereferencing pointer to incomplete type
vnet.c:1511: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hub_boltschanged':
vnet.c:1520: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1520: error: syntax error before string constant
vnet.c: In function `vnet_boltschanged':
vnet.c:1526: error: dereferencing pointer to incomplete type
vnet.c:1527: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_nut_free':
vnet.c:1533: error: dereferencing pointer to incomplete type
vnet.c:1534: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hub_free_nut':
vnet.c:1539: error: dereferencing pointer to incomplete type
vnet.c:1541: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1541: error: syntax error before string constant
vnet.c:1543: error: dereferencing pointer to incomplete type
vnet.c:1544: error: `KERN_DEBUG' undeclared (first use in this function)
vnet.c:1544: error: syntax error before string constant
vnet.c:1555: error: dereferencing pointer to incomplete type
vnet.c: In function `vnet_hub_cycledetect':
vnet.c:1561: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1561: error: syntax error before string constant
vnet.c: In function `vnet_hub_disconnect':
vnet.c:1584: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1584: error: syntax error before string constant
vnet.c:1588: error: dereferencing pointer to incomplete type
vnet.c:1594: error: dereferencing pointer to incomplete type
vnet.c:1595: error: dereferencing pointer to incomplete type
vnet.c:1597: error: dereferencing pointer to incomplete type
vnet.c:1598: error: dereferencing pointer to incomplete type
vnet.c:1604: error: dereferencing pointer to incomplete type
vnet.c:1605: error: syntax error before string constant
vnet.c:1607: warning: implicit declaration of function `wait_event'
vnet.c:1607: error: dereferencing pointer to incomplete type
vnet.c:1607: error: dereferencing pointer to incomplete type
vnet.c:1612: error: dereferencing pointer to incomplete type
vnet.c:1614: error: syntax error before string constant
vnet.c:1619: error: dereferencing pointer to incomplete type
vnet.c:1620: error: dereferencing pointer to incomplete type
vnet.c:1636: error: syntax error before string constant
vnet.c: In function `vnet_hub_connect':
vnet.c:1647: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1647: error: syntax error before string constant
vnet.c:1647: warning: left-hand operand of comma expression has no effect
vnet.c:1647: warning: left-hand operand of comma expression has no effect
vnet.c:1647: error: syntax error before ')' token
vnet.c:1649: error: dereferencing pointer to incomplete type
vnet.c:1656: error: dereferencing pointer to incomplete type
vnet.c:1656: error: dereferencing pointer to incomplete type
vnet.c:1678: error: dereferencing pointer to incomplete type
vnet.c:1679: error: dereferencing pointer to incomplete type
vnet.c:1682: error: dereferencing pointer to incomplete type
vnet.c:1683: error: dereferencing pointer to incomplete type
vnet.c:1685: error: dereferencing pointer to incomplete type
vnet.c:1686: error: dereferencing pointer to incomplete type
vnet.c:1704: error: syntax error before string constant
vnet.c:1704: warning: left-hand operand of comma expression has no effect
vnet.c:1704: error: syntax error before ')' token
vnet.c: At top level:
vnet.c:1711: warning: `struct sk_buff' declared inside parameter list
vnet.c:1712: error: conflicting types for `vnet_hub_recv'
vnet.c:144: error: previous declaration of `vnet_hub_recv'
vnet.c: In function `vnet_hub_recv':
vnet.c:1713: error: dereferencing pointer to incomplete type
vnet.c:1719: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1719: error: syntax error before string constant
vnet.c:1721: error: dereferencing pointer to incomplete type
vnet.c:1726: error: dereferencing pointer to incomplete type
vnet.c:1727: error: dereferencing pointer to incomplete type
vnet.c:1729: warning: implicit declaration of function `skb_clone'
vnet.c:1729: error: `GFP_ATOMIC' undeclared (first use in this function)
vnet.c:1729: warning: assignment makes pointer from integer without a cast
vnet.c:1731: error: dereferencing pointer to incomplete type
vnet.c:1732: error: dereferencing pointer to incomplete type
vnet.c:1732: error: dereferencing pointer to incomplete type
vnet.c:1738: error: syntax error before string constant
vnet.c:1748: error: syntax error before string constant
vnet.c: In function `vnet_hub_alloc_nut':
vnet.c:1760: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1760: error: syntax error before string constant
vnet.c:1760: warning: left-hand operand of comma expression has no effect
vnet.c:1760: error: syntax error before ')' token
vnet.c:1763: error: syntax error before string constant
vnet.c:1764: warning: left-hand operand of comma expression has no effect
vnet.c:1764: error: syntax error before ')' token
vnet.c:1766: error: `GFP_KERNEL' undeclared (first use in this function)
vnet.c:1768: error: syntax error before string constant
vnet.c:1771: error: syntax error before string constant
vnet.c:1780: error: dereferencing pointer to incomplete type
vnet.c:1781: error: dereferencing pointer to incomplete type
vnet.c:1782: error: dereferencing pointer to incomplete type
vnet.c:1783: error: dereferencing pointer to incomplete type
vnet.c:1784: error: dereferencing pointer to incomplete type
vnet.c:1785: error: dereferencing pointer to incomplete type
vnet.c:1786: error: dereferencing pointer to incomplete type
vnet.c:1787: error: dereferencing pointer to incomplete type
vnet.c:1790: error: dereferencing pointer to incomplete type
vnet.c:1792: error: dereferencing pointer to incomplete type
vnet.c:1793: error: dereferencing pointer to incomplete type
vnet.c:1794: error: dereferencing pointer to incomplete type
vnet.c:1795: error: dereferencing pointer to incomplete type
vnet.c:1796: error: dereferencing pointer to incomplete type
vnet.c:1809: error: syntax error before string constant
vnet.c:1813: error: syntax error before string constant
vnet.c:1813: warning: left-hand operand of comma expression has no effect
vnet.c:1813: error: syntax error before ')' token
vnet.c:1814: error: dereferencing pointer to incomplete type
vnet.c:1836: error: dereferencing pointer to incomplete type
vnet.c:1837: error: dereferencing pointer to incomplete type
vnet.c:1838: error: dereferencing pointer to incomplete type
vnet.c:1839: error: syntax error before string constant
vnet.c:1843: error: syntax error before string constant
vnet.c: In function `vnet_hub_init':
vnet.c:1850: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1850: error: syntax error before string constant
vnet.c:1855: error: syntax error before string constant
vnet.c: In function `vnet_hub_free':
vnet.c:1861: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1861: error: syntax error before string constant
vnet.c:1865: error: syntax error before string constant
vnet.c:1865: warning: left-hand operand of comma expression has no effect
vnet.c:1865: error: syntax error before ')' token
vnet.c:1869: error: syntax error before string constant
vnet.c:1869: warning: left-hand operand of comma expression has no effect
vnet.c:1869: error: syntax error before ')' token
vnet.c: At top level:
vnet.c:1872: error: variable `vnet_fops' has initializer but incomplete type
vnet.c:1873: error: unknown field `owner' specified in initializer
vnet.c:1873: error: `__this_module' undeclared here (not in a function)
vnet.c:1873: warning: excess elements in struct initializer
vnet.c:1873: warning: (near initialization for `vnet_fops')
vnet.c:1874: error: unknown field `read' specified in initializer
vnet.c:1874: warning: excess elements in struct initializer
vnet.c:1874: warning: (near initialization for `vnet_fops')
vnet.c:1875: error: unknown field `write' specified in initializer
vnet.c:1875: warning: excess elements in struct initializer
vnet.c:1875: warning: (near initialization for `vnet_fops')
vnet.c:1876: error: unknown field `poll' specified in initializer
vnet.c:1876: warning: excess elements in struct initializer
vnet.c:1876: warning: (near initialization for `vnet_fops')
vnet.c:1877: error: unknown field `ioctl' specified in initializer
vnet.c:1877: warning: excess elements in struct initializer
vnet.c:1877: warning: (near initialization for `vnet_fops')
vnet.c:1878: error: unknown field `open' specified in initializer
vnet.c:1878: warning: excess elements in struct initializer
vnet.c:1878: warning: (near initialization for `vnet_fops')
vnet.c:1879: error: unknown field `release' specified in initializer
vnet.c:1879: warning: excess elements in struct initializer
vnet.c:1879: warning: (near initialization for `vnet_fops')
vnet.c:1880: error: unknown field `fasync' specified in initializer
vnet.c:1881: warning: excess elements in struct initializer
vnet.c:1881: warning: (near initialization for `vnet_fops')
vnet.c:1883: error: variable `vnet_miscdev' has initializer but incomplete type
vnet.c:1885: warning: excess elements in struct initializer
vnet.c:1885: warning: (near initialization for `vnet_miscdev')
vnet.c:1886: warning: excess elements in struct initializer
vnet.c:1886: warning: (near initialization for `vnet_miscdev')
vnet.c:1888: warning: excess elements in struct initializer
vnet.c:1888: warning: (near initialization for `vnet_miscdev')
vnet.c: In function `vnet_init':
vnet.c:1893: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1893: error: syntax error before string constant
vnet.c:1896: warning: implicit declaration of function `spin_lock_init'
vnet.c:1900: error: `KERN_ERR' undeclared (first use in this function)
vnet.c:1900: error: syntax error before string constant
vnet.c:1903: error: syntax error before string constant
vnet.c:1905: warning: implicit declaration of function `misc_register'
vnet.c:1906: error: syntax error before string constant
vnet.c:1909: error: syntax error before string constant
vnet.c:1910: error: syntax error before string constant
vnet.c: In function `vnet_cleanup':
vnet.c:1919: error: `KERN_INFO' undeclared (first use in this function)
vnet.c:1919: error: syntax error before string constant
vnet.c:1920: warning: implicit declaration of function `misc_deregister'
vnet.c:1921: error: syntax error before string constant
vnet.c:1922: error: syntax error before string constant
vnet.c: At top level:
if_vnet.h:208: error: storage size of `readq' isn't known
if_vnet.h:209: error: storage size of `dev' isn't known
vnet.c:1872: error: storage size of `vnet_fops' isn't known
vnet.c:1883: error: storage size of `vnet_miscdev' isn't known
vnet.c:1334: warning: `vnet_nut_release' defined but not used
vnet.c:1488: warning: `vnet_hub_getattachednuts' defined but not used
vnet.c:1452: warning: `vnet_hub_grabnuts' defined but not used
vnet.c:1509: warning: `vnet_isbridged' defined but not used
vnet.c:1525: warning: `vnet_boltschanged' defined but not used
vnet.c:1532: warning: `vnet_nut_free' defined but not used
make: *** [vnet.o] 閿欒? 1
回复

使用道具 举报

发表于 2005-9-28 15:31:21 | 显示全部楼层
我写的vnet当时用在2.4的内核上。现在基本没有维护了。
因为用 linux自己带的tun/tap基本够用。
建议用tun/tap的skyeye.conf配置
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-3 04:28 , Processed in 0.041092 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表