|WARNING| pw165261 [RFC] memtank: add memtank library

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Jun 10 12:39:07 CEST 2026


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

_coding style issues_


WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#148: FILE: app/test/test_memtank.c:5:
+#include <stdio.h>
           ^^^^^

WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#317: FILE: app/test/test_memtank_stress.c:8:
+#include <stdio.h>
           ^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#403: FILE: app/test/test_memtank_stress.c:94:
+		struct master_args master;
 		                   ^^^^^^

WARNING:TYPO_SPELLING: 'alloced' may be misspelled - perhaps 'allocated'?
#449: FILE: app/test/test_memtank_stress.c:140:
+	uint32_t wrk_max_obj;    /* max alloced objects per worker */
 	                                ^^^^^^^

WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'?
#535: FILE: app/test/test_memtank_stress.c:226:
+	long double muc, mut;
 	                 ^^^

WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'?
#543: FILE: app/test/test_memtank_stress.c:234:
+	mut = (alloc_sz == 0) ? 1 :
 	^^^

WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'?
#567: FILE: app/test/test_memtank_stress.c:258:
+	fprintf(f, "	mem_util(total)=%.2Lf %%,
", mut * 100);
 	                                            ^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#942: FILE: app/test/test_memtank_stress.c:633:
+	for (cl = 0, i = 0; cl < ma->master.run_cycles;
 	                             ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#947: FILE: app/test/test_memtank_stress.c:638:
+		if (ma->master.flags & MASTER_FLAG_SHRINK) {
 		        ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#966: FILE: app/test/test_memtank_stress.c:657:
+		if (ma->master.flags & MASTER_FLAG_GROW) {
 		        ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#989: FILE: app/test/test_memtank_stress.c:680:
+		rte_delay_us(ma->master.delay_us);
 		                 ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1037: FILE: app/test/test_memtank_stress.c:728:
+	/* launch on master */
 	             ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1039: FILE: app/test/test_memtank_stress.c:730:
+	arg[lc].master.run_cycles = CLEANUP_TIME * rte_get_timer_hz();
 	        ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1060: FILE: app/test/test_memtank_stress.c:751:
+ * grow/shrink by master
                   ^^^^^^

WARNING:TYPO_SPELLING: 'slaves' may be misspelled - perhaps 'secondaries'?
#1095: FILE: app/test/test_memtank_stress.c:786:
+	/* prepare args on all slaves */
 	                       ^^^^^^

WARNING:TYPO_SPELLING: 'slaves' may be misspelled - perhaps 'secondaries'?
#1110: FILE: app/test/test_memtank_stress.c:801:
+	/* launch on all slaves */
 	                 ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1114: FILE: app/test/test_memtank_stress.c:805:
+	/* launch on master */
 	             ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1117: FILE: app/test/test_memtank_stress.c:808:
+	fill_master_args(&arg[lc].master,
 	                          ^^^^^^

WARNING:TYPO_SPELLING: 'slaves' may be misspelled - perhaps 'secondaries'?
#1121: FILE: app/test/test_memtank_stress.c:812:
+	/* wait for slaves and collect stats. */
 	            ^^^^^^

WARNING:TYPO_SPELLING: 'slave' may be misspelled - perhaps 'secondary'?
#1144: FILE: app/test/test_memtank_stress.c:835:
+	/* run cleanup on all slave cores */
 	                      ^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1157: FILE: app/test/test_memtank_stress.c:848:
+ * grow/shrink by master
                   ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#1167: FILE: app/test/test_memtank_stress.c:858:
+ * master does nothing
    ^^^^^^

WARNING:TYPO_SPELLING: 'relased' may be misspelled - perhaps 'released'?
#1497: FILE: doc/guides/prog_guide/memtank_lib.rst:63:
+  and can be 'shrinked' - relased back to the memory subsystem.
                           ^^^^^^^

WARNING:TYPO_SPELLING: 'statisitics' may be misspelled - perhaps 'statistics'?
#1502: FILE: doc/guides/prog_guide/memtank_lib.rst:68:
+  statisitics collection and runtime verification. Total size of the metadata
   ^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'maximimum' may be misspelled - perhaps 'maximum'?
#1516: FILE: doc/guides/prog_guide/memtank_lib.rst:82:
+Also user can define a grow limit: ```max_obj``` - maximimum possible number
                                                    ^^^^^^^^^

WARNING:TYPO_SPELLING: 'cheking' may be misspelled - perhaps 'checking'?
#1546: FILE: doc/guides/prog_guide/memtank_lib.rst:112:
+  API for statistics/internal dumping and sanity cheking.
                                                  ^^^^^^^

WARNING:TYPO_SPELLING: 'theshold' may be misspelled - perhaps 'threshold'?
#1595: FILE: doc/guides/prog_guide/memtank_lib.rst:161:
+in the tank exceeds ```max_free``` theshold it de-allocates unused memchunks
                                    ^^^^^^^^

WARNING:TYPO_SPELLING: 'consequtive' may be misspelled - perhaps 'consecutive'?
#2032: FILE: lib/memtank/memtank.c:361:
+		/* find number of consequtive objs from the same chunk */
 		                  ^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'emtpy' may be misspelled - perhaps 'empty'?
#2133: FILE: lib/memtank/memtank.c:462:
+		/* put new emtpy elems at tail of the *used* list */
 		           ^^^^^

WARNING:TYPO_SPELLING: 'concurently' may be misspelled - perhaps 'concurrently'?
#2810: FILE: lib/memtank/misc.c:363:
+	 * if some other threads concurently do alloc/free/grow/shrink
 	                         ^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#2843: FILE: lib/memtank/rte_memtank.h:15:
+#include <stdio.h>
           ^^^^^

WARNING:TYPO_SPELLING: 'initialiaze' may be misspelled - perhaps 'initialize'?
#2891: FILE: lib/memtank/rte_memtank.h:63:
+	/** user provided function to initialiaze an object */
 	                              ^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'intitialize' may be misspelled - perhaps 'initialize'?
#2900: FILE: lib/memtank/rte_memtank.h:72:
+ * Allocate and intitialize new memtank instance, based on the
                 ^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'insteance' may be misspelled - perhaps 'instance'?
#2906: FILE: lib/memtank/rte_memtank.h:78:
+ *   - Pointer to new memtank insteance created, if operation completed
                               ^^^^^^^^^

WARNING:TYPO_SPELLING: 'concurently' may be misspelled - perhaps 'concurrently'?
#3094: FILE: lib/memtank/rte_memtank.h:266:
+ * concurently use same memtank.
    ^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'pinter' may be misspelled - perhaps 'pointer'?
#3097: FILE: lib/memtank/rte_memtank.h:269:
+ *   A pinter to the file.
        ^^^^^^

WARNING:TYPO_SPELLING: 'inconsitency' may be misspelled - perhaps 'inconsistency'?
#3112: FILE: lib/memtank/rte_memtank.h:284:
+ * Dumps error messages to the RTE log subsystem, if some inconsitency
                                                           ^^^^^^^^^^^^

WARNING:TYPO_SPELLING: 'concurently' may be misspelled - perhaps 'concurrently'?
#3118: FILE: lib/memtank/rte_memtank.h:290:
+ *   Value greater then zero, if some other threads do concurently use
                                                        ^^^^^^^^^^^

total: 0 errors, 38 warnings, 2939 lines checked


More information about the test-report mailing list