|WARNING| pw152971 [PATCH 24/46] common/sfc_efx/base: get netport fixed capabilities on probe

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Apr 16 16:03:50 CEST 2025


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

_coding style issues_


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

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#225: FILE: drivers/common/sfc_efx/base/efx_np.c:182:
+#define	FOREACH_SUP_CAP(_map, _map_nentries, _data, _data_nbytes)	\
+	for (unsigned int _i = 0; _i < (_map_nentries); ++_i, ++(_map))	\
+		if (CAP_VLD(_map, _data_nbytes) && CAP_SUP(_map, _data))

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

total: 3 errors, 0 warnings, 256 lines checked


More information about the test-report mailing list