automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| [PATCH 16/56] net/sfc: import libefx PHY statistics support
       [not found] <1479740470-6723-17-git-send-email-arybchenko@solarflare.com>
@ 2016-11-21 15:02 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2016-11-21 15:02 UTC (permalink / raw)
  To: test-report; +Cc: Andrew Rybchenko

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

_coding style issues_


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

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#119: FILE: drivers/net/sfc/efx/base/ef10_phy.c:407:
+	memset(stat, 0, EFX_PHY_NSTATS * sizeof (*stat));

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#121: FILE: drivers/net/sfc/efx/base/ef10_phy.c:409:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#371: FILE: drivers/net/sfc/efx/base/efx_phy.c:351:
+	return (__efx_phy_stat_name[type]);

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around enp->en_port
#382: FILE: drivers/net/sfc/efx/base/efx_phy.c:362:
+	efx_port_t *epp = &(enp->en_port);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#388: FILE: drivers/net/sfc/efx/base/efx_phy.c:368:
+	return (epop->epo_stats_update(enp, esmp, stat));

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#452: FILE: drivers/net/sfc/efx/base/siena_phy.c:381:
+#define	SIENA_SIMPLE_STAT_SET(_vmask, _esmp, _smask, _stat,		\
+			    _mc_record, _efx_record)			\
+	if ((_vmask) & (1ULL << (_mc_record))) {			\
+		(_smask) |= (1ULL << (_efx_record));			\
+		if ((_stat) != NULL && !EFSYS_MEM_IS_NULL(_esmp)) {	\
+			efx_dword_t dword;				\
+			EFSYS_MEM_READD(_esmp, (_mc_record) * 4, &dword);\
+			(_stat)[_efx_record] =				\
+				EFX_DWORD_FIELD(dword, EFX_DWORD_0);	\
+		}							\
+	}

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_esmp' - possible side-effects?
#452: FILE: drivers/net/sfc/efx/base/siena_phy.c:381:
+#define	SIENA_SIMPLE_STAT_SET(_vmask, _esmp, _smask, _stat,		\
+			    _mc_record, _efx_record)			\
+	if ((_vmask) & (1ULL << (_mc_record))) {			\
+		(_smask) |= (1ULL << (_efx_record));			\
+		if ((_stat) != NULL && !EFSYS_MEM_IS_NULL(_esmp)) {	\
+			efx_dword_t dword;				\
+			EFSYS_MEM_READD(_esmp, (_mc_record) * 4, &dword);\
+			(_stat)[_efx_record] =				\
+				EFX_DWORD_FIELD(dword, EFX_DWORD_0);	\
+		}							\
+	}

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_stat' - possible side-effects?
#452: FILE: drivers/net/sfc/efx/base/siena_phy.c:381:
+#define	SIENA_SIMPLE_STAT_SET(_vmask, _esmp, _smask, _stat,		\
+			    _mc_record, _efx_record)			\
+	if ((_vmask) & (1ULL << (_mc_record))) {			\
+		(_smask) |= (1ULL << (_efx_record));			\
+		if ((_stat) != NULL && !EFSYS_MEM_IS_NULL(_esmp)) {	\
+			efx_dword_t dword;				\
+			EFSYS_MEM_READD(_esmp, (_mc_record) * 4, &dword);\
+			(_stat)[_efx_record] =				\
+				EFX_DWORD_FIELD(dword, EFX_DWORD_0);	\
+		}							\
+	}

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_efx_record' - possible side-effects?
#452: FILE: drivers/net/sfc/efx/base/siena_phy.c:381:
+#define	SIENA_SIMPLE_STAT_SET(_vmask, _esmp, _smask, _stat,		\
+			    _mc_record, _efx_record)			\
+	if ((_vmask) & (1ULL << (_mc_record))) {			\
+		(_smask) |= (1ULL << (_efx_record));			\
+		if ((_stat) != NULL && !EFSYS_MEM_IS_NULL(_esmp)) {	\
+			efx_dword_t dword;				\
+			EFSYS_MEM_READD(_esmp, (_mc_record) * 4, &dword);\
+			(_stat)[_efx_record] =				\
+				EFX_DWORD_FIELD(dword, EFX_DWORD_0);	\
+		}							\
+	}

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around enp->en_nic_cfg
#561: FILE: drivers/net/sfc/efx/base/siena_phy.c:490:
+	efx_nic_cfg_t *encp = &(enp->en_nic_cfg);

CHECK:SPACING: No space is necessary after a cast
#569: FILE: drivers/net/sfc/efx/base/siena_phy.c:498:
+	(void) memset(payload, 0, sizeof (payload));

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#569: FILE: drivers/net/sfc/efx/base/siena_phy.c:498:
+	(void) memset(payload, 0, sizeof (payload));

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#592: FILE: drivers/net/sfc/efx/base/siena_phy.c:521:
+	return (0);

ERROR:RETURN_PARENTHESES: return is not a function, parentheses are not required
#597: FILE: drivers/net/sfc/efx/base/siena_phy.c:526:
+	return (0);

total: 6 errors, 2 warnings, 7 checks, 472 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-21 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1479740470-6723-17-git-send-email-arybchenko@solarflare.com>
2016-11-21 15:02 ` [dpdk-test-report] |WARNING| [PATCH 16/56] net/sfc: import libefx PHY statistics support checkpatch

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).