[dpdk-test-report] |WARNING| [PATCH 1/7] eal: define container_of	macro
    checkpatch at dpdk.org 
    checkpatch at dpdk.org
       
    Sun Nov 20 11:07:15 CET 2016
    
    
  
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/17097
_coding style issues_
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#95: FILE: lib/librte_eal/common/include/rte_common.h:349:
+#define container_of(ptr, type, member)	__extension__ ({		\
+			typeof(((type *)0)->member) *_ptr = (ptr);	\
+			(type *)(((char *)_ptr) - offsetof(type, member)); })
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#96: FILE: lib/librte_eal/common/include/rte_common.h:350:
+			typeof(((type *)0)->member) *_ptr = (ptr);	\
 			                            ^
total: 2 errors, 0 warnings, 26 lines checked
    
    
More information about the test-report
mailing list