Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/165565
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#148: FILE: drivers/common/cnxk/roc_nix_queue.c:13:
+#define NIX_RQ_BULK_ENA_DIS_LOOP(REQ_TYPE, ALLOC_FN) \
+ do { \
+ for (i = 0; i < nb_rx_queues; i++) { \
+ REQ_TYPE *aq; \
+ if (rqs[i].qid == UINT16_MAX) \
+ continue; \
+ struct roc_nix_rq *rq = &rqs[i]; \
+ aq = ALLOC_FN(mbox); \
+ if (!aq) { \
+ rc = mbox_process(mbox); \
+ if (rc) \
+ goto exit; \
+ aq = ALLOC_FN(mbox); \
+ if (!aq) { \
+ rc = -ENOSPC; \
+ goto exit; \
+ } \
+ } \
+ aq->qidx = rq->qid; \
+ aq->ctype = NIX_AQ_CTYPE_RQ; \
+ aq->op = NIX_AQ_INSTOP_WRITE; \
+ aq->rq.ena = enable; \
+ aq->rq_mask.ena = ~(aq->rq_mask.ena); \
+ } \
+ } while (0)
total: 0 errors, 1 warnings, 136 lines checked