[dpdk-test-report] |WARNING| pw63452 [PATCH 24/69] net/i40e/base: update virtchnl.h

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Dec 2 09:01:51 CET 2019


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/63452

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'n' - possible side-effects?
#89: FILE: drivers/net/i40e/base/virtchnl.h:137:
+#define VIRTCHNL_CHECK_UNION_LEN(n, X) enum virtchnl_static_asset_enum_##X \
+	{ virtchnl_static_assert_##X = (n)/((sizeof(union X) == (n)) ? 1 : 0) }

CHECK:SPACING: spaces preferred around that '/' (ctx:VxV)
#90: FILE: drivers/net/i40e/base/virtchnl.h:138:
+	{ virtchnl_static_assert_##X = (n)/((sizeof(union X) == (n)) ? 1 : 0) }
 	                                  ^

total: 0 errors, 0 warnings, 2 checks, 244 lines checked


More information about the test-report mailing list