How to solve "drivers/ner/igbvf/igbvf.h:129:15: error: duplicate member ‘page’"
2015-04-07 19:18
501 查看
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:441:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
In file included from drivers/net/igbvf/ethtool.c:36:0:
drivers/net/igbvf/igbvf.h: At top level:
drivers/net/igbvf/igbvf.h:129:15: error: duplicate member ‘page’
make[3]: *** [drivers/net/igbvf/ethtool.o] Error 1
make[2]: *** [drivers/net/igbvf] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
root@ubuntu:/linux-2.6.34.14/linux-2.6.34.7#
include/linux/irq.h:441:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
In file included from drivers/net/igbvf/ethtool.c:36:0:
drivers/net/igbvf/igbvf.h: At top level:
drivers/net/igbvf/igbvf.h:129:15: error: duplicate member ‘page’
make[3]: *** [drivers/net/igbvf/ethtool.o] Error 1
make[2]: *** [drivers/net/igbvf] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
root@ubuntu:/linux-2.6.34.14/linux-2.6.34.7#
SOLUTION: --------- struct igbvf_buffer { dma_addr_t dma; struct sk_buff *skb;`enter code here` union { /* Tx */ struct { unsigned long time_stamp; u16 length; u16 next_to_watch; u16 mapped_as_page; }; /* Rx */ struct { struct page *page; <--------------- No 1 u64 page_dma; unsigned int page_offset; }; }; struct page *page; <------------ No 2 }; Hmm conflict of a member with a transparent union. Maybe older gccs didn't catch that. But it looks very broken Comment second pointer. 旧的gcc可能已经不适合,建议把第二个page指针注释掉。
相关文章推荐
- How to solve "drivers/ner/igbvf/igbvf.h:129:15: error: duplicate member ‘page’"
- how to solve Error cannot add duplicate collection entry of type add with unique key attribute 'valu
- How to solve "java.lang.VerifyError: Expecting a stackmap frame at branch target 6 in method"
- How to solve "The specified service has been marked for deletion" error
- How to solve "Address already in use" error on ...
- How to avoid the error "The file 'xyz.mdf' cannot be overwritten. when deploying
- 转:How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?
- how to solve IMAil error ,550 unknown local host %s, not a gateway
- How to deal with the "ErrorWebPart" error displayed in the web part maintenance page
- How to fix Rosetta stone error 2123 -- "This was an error in the application"
- How to solve symbian Error: Error: Invalid argument: /X
- Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it
- How to troubleshoot a "STOP 0xC000021A" error
- How to fix Rosetta stone error 2123 -- "This was an error in the application"
- loadrunner error提示: Action.c(15): Error -27796: Failed to connect to server "10.9.34.101:80":
- how to resolve the error message "Error reading Win32 manfest file"
- How to eliminate the compile error "conversion from 'double ' to 'float ', possible loss of data"
- Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it
- How to solve install error ".NET Framework 2.0 is not detected." when installing VS tools SDK for GP 10.0
- How to solve "warning:waiting for transaction lock on /var/lib/" produced by pressing "Ctrl + c"?