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| [PATCH v2 28/55] net/sfc: import libefx bootrom configuration support
Date: Tue, 29 Nov 2016 17:22:05 +0100 (CET)	[thread overview]
Message-ID: <20161129162205.732CCFA5F@dpdk.org> (raw)
In-Reply-To: <1480436367-20749-29-git-send-email-arybchenko@solarflare.com>

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

_coding style issues_


CHECK:CAMELCASE: Avoid CamelCase: <__checkReturn>
#95: FILE: drivers/net/sfc/base/efx.h:1427:
+extern	__checkReturn		efx_rc_t

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#246: FILE: drivers/net/sfc/base/efx_bootcfg.c:107:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#254: FILE: drivers/net/sfc/base/efx_bootcfg.c:115:
+	return (rc);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#271: FILE: drivers/net/sfc/base/efx_bootcfg.c:132:
+	return (checksum);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#328: FILE: drivers/net/sfc/base/efx_bootcfg.c:189:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#337: FILE: drivers/net/sfc/base/efx_bootcfg.c:198:
+	return (rc);

CHECK:SPACING: No space is necessary after a cast
#409: FILE: drivers/net/sfc/base/efx_bootcfg.c:270:
+		(void) memset(data + used_bytes, 0, data_size - used_bytes);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#417: FILE: drivers/net/sfc/base/efx_bootcfg.c:278:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#426: FILE: drivers/net/sfc/base/efx_bootcfg.c:287:
+	return (rc);

CHECK:BRACES: braces {} should be used on all arms of this statement
#473: FILE: drivers/net/sfc/base/efx_bootcfg.c:334:
+	if (sector_length > size) {
[...]
+	} else
[...]

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#482: FILE: drivers/net/sfc/base/efx_bootcfg.c:343:
+	if ((rc = efx_nvram_rw_start(enp, EFX_NVRAM_BOOTROM_CFG, NULL)) != 0)

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#485: FILE: drivers/net/sfc/base/efx_bootcfg.c:346:
+	if ((rc = efx_nvram_read_chunk(enp, EFX_NVRAM_BOOTROM_CFG,

CHECK:SPACING: No space is necessary after a cast
#487: FILE: drivers/net/sfc/base/efx_bootcfg.c:348:
+		(void) efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CFG);

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#491: FILE: drivers/net/sfc/base/efx_bootcfg.c:352:
+	if ((rc = efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CFG)) != 0)

CHECK:SPACING: No space is necessary after a cast
#537: FILE: drivers/net/sfc/base/efx_bootcfg.c:398:
+		(void) memset(data + used_bytes, 0, size - used_bytes);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#545: FILE: drivers/net/sfc/base/efx_bootcfg.c:406:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#566: FILE: drivers/net/sfc/base/efx_bootcfg.c:427:
+	return (rc);

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#609: FILE: drivers/net/sfc/base/efx_bootcfg.c:470:
+	if ((rc = efx_bootcfg_verify(enp, data, size, &used_bytes)) != 0)

CHECK:SPACING: No space is necessary after a cast
#650: FILE: drivers/net/sfc/base/efx_bootcfg.c:511:
+	(void) memset(partn_data + sector_offset, 0x0, sector_length);

CHECK:SPACING: No space is necessary after a cast
#651: FILE: drivers/net/sfc/base/efx_bootcfg.c:512:
+	(void) memcpy(partn_data + sector_offset, data, used_bytes);

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#656: FILE: drivers/net/sfc/base/efx_bootcfg.c:517:
+	if ((rc = efx_nvram_erase(enp, EFX_NVRAM_BOOTROM_CFG)) != 0)

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#659: FILE: drivers/net/sfc/base/efx_bootcfg.c:520:
+	if ((rc = efx_nvram_write_chunk(enp, EFX_NVRAM_BOOTROM_CFG,

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#663: FILE: drivers/net/sfc/base/efx_bootcfg.c:524:
+	if ((rc = efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CFG)) != 0)

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#668: FILE: drivers/net/sfc/base/efx_bootcfg.c:529:
+	return (0);

CHECK:SPACING: No space is necessary after a cast
#679: FILE: drivers/net/sfc/base/efx_bootcfg.c:540:
+	(void) efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CFG);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#699: FILE: drivers/net/sfc/base/efx_bootcfg.c:560:
+	return (rc);

total: 18 errors, 0 warnings, 8 checks, 621 lines checked

           reply	other threads:[~2016-11-29 16:22 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1480436367-20749-29-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=20161129162205.732CCFA5F@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).