automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Tyler Retzlaff <roretzla@linux.microsoft.com>
Subject: |WARNING| pw134036 [PATCH] ethdev: add extension keyword to statement expression macro
Date: Thu,  9 Nov 2023 21:14:28 +0100 (CET)	[thread overview]
Message-ID: <20231109201428.6ADA7120DB4@dpdk.org> (raw)
In-Reply-To: <1699560818-7453-1-git-send-email-roretzla@linux.microsoft.com>

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#104: FILE: lib/ethdev/rte_tm.c:43:
+#define RTE_TM_FUNC(port_id, func)			\
+__extension__ ({					\
 	const struct rte_tm_ops *ops =			\
 		rte_tm_ops_get(port_id, error);		\
+	if (ops == NULL)				\
 		return -rte_errno;			\
 							\
 	if (ops->func == NULL)				\

total: 0 errors, 1 warnings, 40 lines checked

  parent reply	other threads:[~2023-11-09 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1699560818-7453-1-git-send-email-roretzla@linux.microsoft.com>
2023-11-09 19:53 ` |SUCCESS| " qemudev
2023-11-09 19:58 ` qemudev
2023-11-09 20:14 ` checkpatch [this message]
2023-11-09 21:19 ` 0-day Robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231109201428.6ADA7120DB4@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=roretzla@linux.microsoft.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).