* [dpdk-test-report] |WARNING| pw31990 [PATCH v3 1/5] bbdev: librte_bbdev library
[not found] <1512682857-79467-1-git-send-email-amr.mokhtar@intel.com>
@ 2017-12-07 21:41 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-12-07 21:41 UTC (permalink / raw)
To: test-report; +Cc: Amr Mokhtar
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/31990
_coding style issues_
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#55: FILE: MAINTAINERS:276:
+M: Amr Mokhtar <amr.mokhtar@intel.com>
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#56: FILE: MAINTAINERS:277:
+F: lib/librte_bbdev/
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#57: FILE: MAINTAINERS:278:
+F: drivers/bbdev/
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#58: FILE: MAINTAINERS:279:
+F: app/test-bbdev
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#59: FILE: MAINTAINERS:280:
+F: examples/bbdev_app/
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#60: FILE: MAINTAINERS:281:
+F: doc/guides/bbdevs/
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#61: FILE: MAINTAINERS:282:
+F: doc/guides/prog_guide/bbdev.rst
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#62: FILE: MAINTAINERS:283:
+F: doc/guides/sample_app_ug/bbdev_app.rst
WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#63: FILE: MAINTAINERS:284:
+F: doc/guides/tools/testbbdev.rst
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#258: FILE: lib/librte_bbdev/rte_bbdev.c:59:
+#define VALID_DEV_OR_RET_ERR(dev, dev_id) do { \
+ if (dev == NULL) { \
+ rte_bbdev_log(ERR, "device %u is invalid", dev_id); \
+ return -ENODEV; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#266: FILE: lib/librte_bbdev/rte_bbdev.c:67:
+#define VALID_DEV_OPS_OR_RET_ERR(dev, dev_id) do { \
+ if (dev->dev_ops == NULL) { \
+ rte_bbdev_log(ERR, "NULL dev_ops structure in device %u", \
+ dev_id); \
+ return -ENODEV; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#275: FILE: lib/librte_bbdev/rte_bbdev.c:76:
+#define VALID_FUNC_OR_RET_ERR(func, dev_id) do { \
+ if (func == NULL) { \
+ rte_bbdev_log(ERR, "device %u does not support %s", \
+ dev_id, #func); \
+ return -ENOTSUP; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#284: FILE: lib/librte_bbdev/rte_bbdev.c:85:
+#define VALID_QUEUE_OR_RET_ERR(queue_id, dev) do { \
+ if (queue_id >= dev->data->num_queues) { \
+ rte_bbdev_log(ERR, "Invalid queue_id %u for device %u", \
+ queue_id, dev->data->dev_id); \
+ return -ERANGE; \
+ } \
+} while (0)
total: 0 errors, 13 warnings, 3320 lines checked
^ permalink raw reply [flat|nested] only message in thread