* [dpdk-test-report] |WARNING| pw79622 [PATCH v2 02/56] net/txgbe: add ethdev probe and remove
[not found] <20201005120910.189343-3-jiawenwu@trustnetic.com>
@ 2020-10-05 12:11 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-10-05 12:11 UTC (permalink / raw)
To: test-report; +Cc: Jiawen Wu
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/79622
_coding style issues_
CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
#228: FILE: drivers/net/txgbe/txgbe_ethdev.c:25:
+{
+
CHECK:BRACES: Blank lines aren't necessary after an open brace '{'
#237: FILE: drivers/net/txgbe/txgbe_ethdev.c:34:
+{
+
CHECK:BRACES: braces {} should be used on all arms of this statement
#251: FILE: drivers/net/txgbe/txgbe_ethdev.c:48:
+ if (pci_dev->device.devargs) {
[...]
+ } else
[...]
CHECK:BRACES: Unbalanced braces around else statement
#256: FILE: drivers/net/txgbe/txgbe_ethdev.c:53:
+ } else
WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#396: FILE: drivers/net/txgbe/txgbe_logs.h:60:
+#define wjmsg_line(fmt, ...) \
+ do { \
+ RTE_LOG(CRIT, PMD, "%s(%d): " fmt, \
+ __FUNCTION__, __LINE__, ## __VA_ARGS__); \
+ } while (0)
WARNING:LEADING_SPACE: please, no spaces at the start of a line
#397: FILE: drivers/net/txgbe/txgbe_logs.h:61:
+ do { \$
WARNING:USE_FUNC: __func__ should be used instead of gcc specific __FUNCTION__
#399: FILE: drivers/net/txgbe/txgbe_logs.h:63:
+ __FUNCTION__, __LINE__, ## __VA_ARGS__); \
WARNING:LEADING_SPACE: please, no spaces at the start of a line
#400: FILE: drivers/net/txgbe/txgbe_logs.h:64:
+ } while (0)$
WARNING:LEADING_SPACE: please, no spaces at the start of a line
#402: FILE: drivers/net/txgbe/txgbe_logs.h:66:
+ do { \$
WARNING:LEADING_SPACE: please, no spaces at the start of a line
#405: FILE: drivers/net/txgbe/txgbe_logs.h:69:
+ } while (0)$
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mb' - possible side-effects?
#408: FILE: drivers/net/txgbe/txgbe_logs.h:72:
+#define wjdump(mb) { \
+ int j; char buf[128] = ""; \
+ wjmsg("data_len=%d pkt_len=%d vlan_tci=%d " \
+ "packet_type=0x%08x ol_flags=0x%016lx " \
+ "hash.rss=0x%08x hash.fdir.hash=0x%04x hash.fdir.id=%d
", \
+ mb->data_len, mb->pkt_len, mb->vlan_tci, \
+ mb->packet_type, mb->ol_flags, \
+ mb->hash.rss, mb->hash.fdir.hash, mb->hash.fdir.id); \
+ for (j = 0; j < mb->data_len; j++) { \
+ sprintf(buf + strlen(buf), "%02x ", \
+ ((uint8_t *)(mb->buf_addr) + mb->data_off)[j]); \
+ if (j % 8 == 7) {\
+ wjmsg("%s
", buf); \
+ buf[0] = '
^ permalink raw reply [flat|nested] only message in thread