|WARNING| pw130097 [RFC] net/sfc: support packet replay in transfer flows

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Aug 10 20:30:04 CEST 2023


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

_coding style issues_


WARNING:SPACING: space prohibited between function name and open parenthesis '('
#166: FILE: drivers/common/sfc_efx/base/efx_mae.c:4286:
+	EFSYS_KMEM_ALLOC(enp->en_esip, sizeof (*spec_clone), spec_clone);

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

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

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#211: FILE: drivers/common/sfc_efx/base/efx_mae.c:4331:
+	EFX_STATIC_ASSERT(sizeof (aset_list_idp->id) ==

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#235: FILE: drivers/common/sfc_efx/base/efx_mae.c:4355:
+	    aset_ids, n_asets * sizeof (*aset_ids));

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

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

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

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -ENOMEM)
#483: FILE: drivers/net/sfc/sfc_mae.c:1344:
+		return ENOMEM;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -ENOMEM)
#497: FILE: drivers/net/sfc/sfc_mae.c:1358:
+		return ENOMEM;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -ENOSPC)
#820: FILE: drivers/net/sfc/sfc_mae.c:4709:
+		return ENOSPC;

total: 5 errors, 6 warnings, 0 checks, 1305 lines checked


More information about the test-report mailing list