automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Jie Liu <liujie5@linkdatatechnology.com>
Subject: |WARNING| pw153150 [PATCH 04/13] net/sxe: add link, flow ctrl, mac ops, mtu ops function
Date: Fri, 25 Apr 2025 12:03:13 +0200 (CEST)	[thread overview]
Message-ID: <20250425100313.C2E031251C3@dpdk.org> (raw)
In-Reply-To: <20250425023652.37368-4-liujie5@linkdatatechnology.com>

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

_coding style issues_


WARNING:TYPO_SPELLING: 'unsupport' may be misspelled - perhaps 'unsupported'?
#328: FILE: drivers/net/sxe/pf/sxe_ethdev.c:273:
+		PMD_LOG_ERR(INIT, "unsupport loopback mode:%u.",

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#616: FILE: drivers/net/sxe/pf/sxe_filter.c:28:
+#define SXE_STRIP_BITMAP_SET(h, q) \
+	do { \
+		u32 idx = (q) / (sizeof((h)->strip_bitmap[0]) * BYTE_BIT_NUM); \
+		u32 bit = (q) % (sizeof((h)->strip_bitmap[0]) * BYTE_BIT_NUM); \
+		(h)->strip_bitmap[idx] |= 1 << bit;\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#623: FILE: drivers/net/sxe/pf/sxe_filter.c:35:
+#define SXE_STRIP_BITMAP_CLEAR(h, q) \
+	do {\
+		u32 idx = (q) / (sizeof((h)->strip_bitmap[0]) * BYTE_BIT_NUM); \
+		u32 bit = (q) % (sizeof((h)->strip_bitmap[0]) * BYTE_BIT_NUM); \
+		(h)->strip_bitmap[idx] &= ~(1 << bit);\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#630: FILE: drivers/net/sxe/pf/sxe_filter.c:42:
+#define SXE_STRIP_BITMAP_GET(h, q, r) \
+	do {\
+		u32 idx = (q) / (sizeof((h)->strip_bitmap[0]) * BYTE_BIT_NUM); \
+		u32 bit = (q) % (sizeof((h)->strip_bitmap[0]) * BYTE_BIT_NUM); \
+		(r) = (h)->strip_bitmap[idx] >> bit & 1;\
+	} while (0)

WARNING:TYPO_SPELLING: 'exsit' may be misspelled - perhaps 'exist'?
#1406: FILE: drivers/net/sxe/pf/sxe_phy.c:181:
+		PMD_LOG_INFO(INIT, "other link config thread exsit");

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#2023: FILE: drivers/net/sxe/pf/sxe_phy.c:798:
+		PMD_LOG_INFO(INIT, "link down, dont fc autoneg");

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#2029: FILE: drivers/net/sxe/pf/sxe_phy.c:804:
+			"dont fc autoneg", link_speed);

WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: JieLiu <liujie5@linkdatatechnology.com>' != 'Signed-off-by: Jie Liu <liujie5@linkdatatechnology.com>'

total: 0 errors, 5 warnings, 3 checks, 2186 lines checked
Warning in drivers/net/sxe/pf/sxe_ethdev.c:
Warning in drivers/net/sxe/pf/sxe_irq.c:
Warning in drivers/net/sxe/pf/sxe_phy.c:
Using rte_atomicNN_xxx
Warning in drivers/net/sxe/pf/sxe_ethdev.c:
Warning in drivers/net/sxe/pf/sxe_irq.c:
Warning in drivers/net/sxe/pf/sxe_phy.c:
Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer rte_atomic_xxx/rte_memory_order_xxx
Warning in drivers/net/sxe/pf/sxe_phy.c:
Using pthread functions, prefer rte_thread

           reply	other threads:[~2025-04-25 10:03 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250425023652.37368-4-liujie5@linkdatatechnology.com>]

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=20250425100313.C2E031251C3@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=liujie5@linkdatatechnology.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).