automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Andrew Rybchenko <arybchenko@solarflare.com>
Subject: [dpdk-test-report] |WARNING| pw78375 [PATCH v2 50/60] common/sfc_efx/base: support UDP tunnel operations for EF100
Date: Tue, 22 Sep 2020 11:44:59 +0200 (CEST)	[thread overview]
Message-ID: <20200922094459.E5F651DDBB@dpdk.org> (raw)
In-Reply-To: <1600767288-12109-51-git-send-email-arybchenko@solarflare.com>

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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#173: FILE: drivers/common/sfc_efx/base/efx_mcdi.h:392:
+#define	MCDI_IN_SET_WORD_NATIVE(_emr, _ofst, _value)			\
+	MCDI_IN2((_emr), efx_word_t, _ofst)->ew_u16[0] = (_value)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#176: FILE: drivers/common/sfc_efx/base/efx_mcdi.h:395:
+#define	MCDI_IN_SET_DWORD_NATIVE(_emr, _ofst, _value)			\
+	MCDI_IN2((_emr), efx_dword_t, _ofst)->ed_u32[0] = (_value)

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#381: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:72:
+	return (rc);

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#418: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:109:
+	EFX_STATIC_ASSERT(sizeof (spec->evers_loc_host) ==

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#451: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:142:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#462: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:153:
+	return (rc);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#505: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:196:
+	return (rc);

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#513: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:204:
+	memset(spec, 0, sizeof (*spec));

WARNING:TYPO_SPELLING: 'inout' may be misspelled - perhaps 'input'?
#526: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:217:
+	__inout		efx_tunnel_udp_entry_t *etuep)

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#531: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:222:
+	return (efx_mcdi_vnic_encap_rule_add(enp, &spec, &etuep->etue_handle));

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#539: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:230:
+	return (efx_mcdi_vnic_encap_rule_remove(enp, etuep->etue_handle));

WARNING:TYPO_SPELLING: 'etcp' may be misspelled - perhaps 'etc'?
#546: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:237:
+	efx_tunnel_cfg_t *etcp = &enp->en_tunnel_cfg;

WARNING:TYPO_SPELLING: 'etcp' may be misspelled - perhaps 'etc'?
#561: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:252:
+	memcpy(&etc, etcp, sizeof (etc));

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#561: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:252:
+	memcpy(&etc, etcp, sizeof (etc));

WARNING:TYPO_SPELLING: 'etcp' may be misspelled - perhaps 'etc'?
#599: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:290:
+	for (i = 0, j = 0; i < etcp->etc_udp_entries_num; i++) {

WARNING:TYPO_SPELLING: 'etcp' may be misspelled - perhaps 'etc'?
#600: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:291:
+		efx_tunnel_udp_entry_t *cur_entry = &etcp->etc_udp_entries[i];

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#612: FILE: drivers/common/sfc_efx/base/rhead_tunnel.c:303:
+	return (0);

total: 9 errors, 8 warnings, 495 lines checked

           reply	other threads:[~2020-09-22  9:45 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1600767288-12109-51-git-send-email-arybchenko@solarflare.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=20200922094459.E5F651DDBB@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=arybchenko@solarflare.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).