|WARNING| pw116950 [PATCH v4 2/9] net/gve/base: add logs and OS specific implementation

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Sep 27 09:35:05 CEST 2022


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'n' - possible side-effects?
#207: FILE: drivers/net/gve/base/gve_osdep.h:77:
+#define GVE_CHECK_STRUCT_LEN(n, X) enum gve_static_assert_enum_##X \
+	{ gve_static_assert_##X = (n) / ((sizeof(struct X) == (n)) ? 1 : 0) }

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'n' - possible side-effects?
#209: FILE: drivers/net/gve/base/gve_osdep.h:79:
+#define GVE_CHECK_UNION_LEN(n, X) enum gve_static_asset_enum_##X \
+	{ gve_static_assert_##X = (n) / ((sizeof(union X) == (n)) ? 1 : 0) }

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


More information about the test-report mailing list