|WARNING| pw115840 [PATCH v5 08/27] eal: deprecate RTE_FUNC_PTR_* macros
checkpatch at dpdk.org
checkpatch at dpdk.org
Mon Sep 5 10:37:18 CEST 2022
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/115840
_coding style issues_
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#950: FILE: lib/eal/include/rte_dev.h:41:
+#define RTE_FUNC_PTR_OR_ERR_RET(func, retval) RTE_DEPRECATED(RTE_FUNC_PTR_OR_ERR_RET) \
+do { \
if ((func) == NULL) \
return retval; \
} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#950: FILE: lib/eal/include/rte_dev.h:41:
+#define RTE_FUNC_PTR_OR_ERR_RET(func, retval) RTE_DEPRECATED(RTE_FUNC_PTR_OR_ERR_RET) \
+do { \
if ((func) == NULL) \
return retval; \
} while (0)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#957: FILE: lib/eal/include/rte_dev.h:47:
+#define RTE_FUNC_PTR_OR_RET(func) RTE_DEPRECATED(RTE_FUNC_PTR_OR_RET) \
+do { \
if ((func) == NULL) \
return; \
} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#957: FILE: lib/eal/include/rte_dev.h:47:
+#define RTE_FUNC_PTR_OR_RET(func) RTE_DEPRECATED(RTE_FUNC_PTR_OR_RET) \
+do { \
if ((func) == NULL) \
return; \
} while (0)
total: 2 errors, 2 warnings, 2281 lines checked
More information about the test-report
mailing list