Skip to contentSkip to conversation

nvdimm: fix typos and repeated words in comments

PATCH In review Hemanth Selam 2 participants 4 messages Sep 7 – Oct 16 libnvdimm: non-volatile memory device

lore
Share & tools
lore
#0 lore raw

cover nvdimm: fix typos and repeated words in comments

This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.

Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.

The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.

Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.

Hemanth Selam (2):
nvdimm: fix typos in comments tools/testing: fix repeated word 'from' in comment

 drivers/nvdimm/namespace_devs.c  | 2 +-
 include/linux/libnvdimm.h        | 2 +-
 tools/testing/nvdimm/test/nfit.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 nvdimm: fix typos in comments

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/nvdimm/namespace_devs.c | 2 +-
 include/linux/libnvdimm.h       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/nvdimm/namespace_devs.c +1 -1
index 557fe0cb43e2..4935c6508448 100644
@@ -1448,7 +1448,7 @@ struct nd_namespace_common *nvdimm_namespace_common_probe(struct device *dev)
 			return ERR_PTR(-ENODEV);
 
 		/*
-		 * Flush any in-progess probes / removals in the driver
+		 * Flush any in-progress probes / removals in the driver
 		 * for the raw personality of this namespace.
 		 */
 		device_lock(&ndns->dev);
include/linux/libnvdimm.h +1 -1
index d929d83abf3b..586421b86162 100644
@@ -59,7 +59,7 @@ enum {
 	ND_REGION_PERSIST_CACHE = 1,
 	/*
 	 * Platform provides mechanisms to automatically flush outstanding
-	 * write data from memory controler to pmem on system power loss.
+	 * write data from memory controller to pmem on system power loss.
 	 * (ADR)
 	 */
 	ND_REGION_PERSIST_MEMCTRL = 2,
Signature · 1 line
2.48.1
#2 lore raw

PATCH 2/2 tools/testing: fix repeated word 'from' in comment

In reply to Hemanth Selam

Drop the second 'from', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.

Assisted-by Cursor:claude-opus-5
---
 tools/testing/nvdimm/test/nfit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/nvdimm/test/nfit.c +1 -1
index 009fe107b0d7..b1802456fbc4 100644
@@ -59,7 +59,7 @@
  * *) The first portion of dimm0 and dimm1 are interleaved as REGION0.
  *    A single PMEM namespace "pm0.0" is created using half of the
  *    REGION0 SPA-range.  REGION0 spans dimm0 and dimm1.  PMEM namespace
- *    allocate from from the bottom of a region.  The unallocated
+ *    allocate from the bottom of a region.  The unallocated
  *    portion of REGION0 aliases with REGION2 and REGION3.  That
  *    unallacted capacity is reclaimed as BLK namespaces ("blk2.0" and
  *    "blk3.0") starting at the base of each DIMM to offset (a) in those
Signature · 1 line
2.48.1
maintainer
#3 lore raw
In reply to Hemanth Selam
Quoted 18 lines · Hemanth Selam

This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.

Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.

The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.

Quoted 3 lines

Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.

This one is a NAK

Not going to churn for non user visible typos.

Quoted 13 lines

Hemanth Selam (2):
nvdimm: fix typos in comments tools/testing: fix repeated word 'from' in comment

 drivers/nvdimm/namespace_devs.c  | 2 +-
 include/linux/libnvdimm.h        | 2 +-
 tools/testing/nvdimm/test/nfit.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1