Skip to contentSkip to conversation

Drivers: hv: fix typos in comments

PATCH Superseded Hemanth Selam 3 participants 11 messages Sep 7 – Sep 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Drivers: hv: fix typos in comments

This is v2 of the spelling fixes for this tree.

Changes since v1:
Subject prefix of patch 1 corrected to 'Drivers: hv: vmbus:'. Michael Kelley's Reviewed-by tags are picked up.

Only comments change; no code is touched.

 drivers/hv/channel.c        | 2 +-
 tools/hv/hv_get_dns_info.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
#1 lore raw

PATCH v2 1/2 Drivers: hv: vmbus: fix typo "substract" in comment

Correct "substract" to "subtract", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches a comment, no code changes.

The subject prefix changed since v1, from "hv:" to "Drivers: hv: vmbus:", for consistency with the rest of the subsystem's history as Michael Kelley pointed out.

Assisted-by Cursor:claude-opus-5
---
 drivers/hv/channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/channel.c +1 -1
index f4370617deac..c36ec14529b9 100644
@@ -79,7 +79,7 @@ static inline u32 hv_ring_gpadl_send_hvpgoffset(u32 offset)
 	 * therefore leaving a (PAGE_SIZE - HV_HYP_PAGE_SIZE) gap.
 	 *
 	 * And to calculate the effective send offset in gpadl, we need to
-	 * substract this gap.
+	 * subtract this gap.
 	 */
 	return (offset - (PAGE_SIZE - HV_HYP_PAGE_SIZE)) >> HV_HYP_PAGE_SHIFT;
 }
#5 lore raw

PATCH v2 2/2 tools/hv: fix typo "retrive" in comment

In reply to Hemanth Selam

Correct "retrive" to "retrieve", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches a comment, no code changes.

Assisted-by Cursor:claude-opus-5
---
 tools/hv/hv_get_dns_info.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hv/hv_get_dns_info.sh +1 -1
index 268521234d4b..288821565eee 100755
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# This example script parses /etc/resolv.conf to retrive DNS information.
+# This example script parses /etc/resolv.conf to retrieve DNS information.
 # In the interest of keeping the KVP daemon code free of distro specific
 # information; the kvp daemon code invokes this external script to gather
 # DNS information.
#2 lore raw

Re: [PATCH v2 1/2] Drivers: hv: vmbus: fix typo "substract" in comment

In reply to Hemanth Selam
Quoted 7 lines · Hemanth Selam

Correct "substract" to "subtract", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches a comment, no code changes.

The subject prefix changed since v1, from "hv:" to "Drivers: hv: vmbus:", for consistency with the rest of the subsystem's history as Michael Kelley pointed out.

Hi,
The change-log (these 3 lines) go after "---" line as a comment so that these do not get propagated to the git log in kernel tree.

Quoted 5 lines
Assisted-by Cursor:claude-opus-5

---

Here.

Refer: https://docs.kernel.org/process/submitting-patches.html#commentary

Example: https://lore.kernel.org/all/[email protected]/

Regards,
Naman

Quoted 16 lines
  drivers/hv/channel.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/channel.c +1 -1
index f4370617deac..c36ec14529b9 100644
@@ -79,7 +79,7 @@ static inline u32 hv_ring_gpadl_send_hvpgoffset(u32 offset)
  	 * therefore leaving a (PAGE_SIZE - HV_HYP_PAGE_SIZE) gap.
  	 *
  	 * And to calculate the effective send offset in gpadl, we need to
-	 * substract this gap.
+	 * subtract this gap.
  	 */
  	return (offset - (PAGE_SIZE - HV_HYP_PAGE_SIZE)) >> HV_HYP_PAGE_SHIFT;
  }
#3 lore raw

Re: [PATCH v2 1/2] Drivers: hv: vmbus: fix typo "substract" in comment

Quoted 2 lines · Naman Jain

The change-log (these 3 lines) go after "---" line as a comment so that these do not get propagated to the git log in kernel tree.

Understood, thanks for the pointer and the example. The changelog belongs below the "---", not in the commit message. I have moved it there for the respins that went out after this one.

Since the diff itself is unchanged and Michael's Reviewed-by still stands, please just drop the three lines when you apply it. Happy to send a v3 with the changelog in the right place if you would rather have that.

maintainer
#4 lore raw

Re: [PATCH v2 1/2] Drivers: hv: vmbus: fix typo "substract" in comment

In reply to Hemanth Selam
Quoted 7 lines · Hemanth Selam

Correct "substract" to "subtract", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches a comment, no code changes.

The subject prefix changed since v1, from "hv:" to "Drivers: hv: vmbus:", for consistency with the rest of the subsystem's history as Michael Kelley pointed out.

You can drop this long wall of text. It is pretty clear what this patch does.

Wei

Quoted 21 lines
Assisted-by Cursor:claude-opus-5
---
 drivers/hv/channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/channel.c +1 -1
index f4370617deac..c36ec14529b9 100644
@@ -79,7 +79,7 @@ static inline u32 hv_ring_gpadl_send_hvpgoffset(u32 offset)
 	 * therefore leaving a (PAGE_SIZE - HV_HYP_PAGE_SIZE) gap.
 	 *
 	 * And to calculate the effective send offset in gpadl, we need to
-	 * substract this gap.
+	 * subtract this gap.
 	 */
 	return (offset - (PAGE_SIZE - HV_HYP_PAGE_SIZE)) >> HV_HYP_PAGE_SHIFT;
 }
maintainer
#6 lore raw

Re: [PATCH v2 2/2] tools/hv: fix typo "retrive" in comment

In reply to Hemanth Selam
Quoted 3 lines · Hemanth Selam

Correct "retrive" to "retrieve", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches a comment, no code changes.

There is no need to write a whole paragraph for a simple typo fix.

Wei

Quoted 20 lines
Assisted-by Cursor:claude-opus-5
---
 tools/hv/hv_get_dns_info.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hv/hv_get_dns_info.sh +1 -1
index 268521234d4b..288821565eee 100755
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# This example script parses /etc/resolv.conf to retrive DNS information.
+# This example script parses /etc/resolv.conf to retrieve DNS information.
 # In the interest of keeping the KVP daemon code free of distro specific
 # information; the kvp daemon code invokes this external script to gather
 # DNS information.
#7 lore raw

v3 cover Drivers: hv: fix typos in comments

In reply to Hemanth Selam

Two one-line comment typo fixes. The diffs are unchanged from v2.

v3:
- Trimmed the commit messages down to a single line each (Wei Liu).
- Dropped the Assisted-by trailer naming the model.
- Moved the note about the v1 -> v2 subject prefix change out of patch 1/2's commit message and into this cover letter: the prefix became "Drivers: hv: vmbus:" to match the subsystem's history, as Michael Kelley pointed out.

Michael Kelley's Reviewed-by is carried over on both patches, as neither diff changed.

v2: https://lore.kernel.org/all/[email protected]/

Hemanth Selam (2):
Drivers: hv: vmbus: fix typo "substract" in comment tools/hv: fix typo "retrive" in comment

 drivers/hv/channel.c        | 2 +-
 tools/hv/hv_get_dns_info.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.48.1
#9 lore raw

PATCH v3 2/2 tools/hv: fix typo "retrive" in comment

Correct "retrive" to "retrieve".

---
 tools/hv/hv_get_dns_info.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hv/hv_get_dns_info.sh +1 -1
index 268521234d4b..288821565eee 100755
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# This example script parses /etc/resolv.conf to retrive DNS information.
+# This example script parses /etc/resolv.conf to retrieve DNS information.
 # In the interest of keeping the KVP daemon code free of distro specific
 # information; the kvp daemon code invokes this external script to gather
 # DNS information.
Signature · 1 line
2.48.1
#8 lore raw

PATCH v3 1/2 Drivers: hv: vmbus: fix typo "substract" in comment

In reply to Hemanth Selam

Correct "substract" to "subtract".

---
 drivers/hv/channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/channel.c +1 -1
index 7e4cc6f55237..a0883ddf32e2 100644
@@ -79,7 +79,7 @@ static inline u32 hv_ring_gpadl_send_hvpgoffset(u32 offset)
 	 * therefore leaving a (PAGE_SIZE - HV_HYP_PAGE_SIZE) gap.
 	 *
 	 * And to calculate the effective send offset in gpadl, we need to
-	 * substract this gap.
+	 * subtract this gap.
 	 */
 	return (offset - (PAGE_SIZE - HV_HYP_PAGE_SIZE)) >> HV_HYP_PAGE_SHIFT;
 }
Signature · 1 line
2.48.1
maintainer Applied
#10 lore raw
In reply to Hemanth Selam
Quoted 13 lines · Hemanth Selam

Two one-line comment typo fixes. The diffs are unchanged from v2.

v3:
- Trimmed the commit messages down to a single line each (Wei Liu).
- Dropped the Assisted-by trailer naming the model.
- Moved the note about the v1 -> v2 subject prefix change out of patch 1/2's commit message and into this cover letter: the prefix became "Drivers: hv: vmbus:" to match the subsystem's history, as Michael Kelley pointed out.

Michael Kelley's Reviewed-by is carried over on both patches, as neither diff changed.

Quoted 7 lines

v2: https://lore.kernel.org/all/[email protected]/

Hemanth Selam (2):
Drivers: hv: vmbus: fix typo "substract" in comment tools/hv: fix typo "retrive" in comment

Applied. Thanks.